09ffbe122d7a02fa85c5d0ddd2309c1f6480457a
[reactos.git] / reactos / tools / wpp / Makefile.in
1 TOPSRCDIR = @top_srcdir@
2 TOPOBJDIR = ../..
3 SRCDIR = @srcdir@
4 VPATH = @srcdir@
5 LEXOPT = -Cf #-w -b
6 YACCOPT = #-v
7 MODULE = libwpp.a
8
9 C_SRCS = \
10 preproc.c \
11 wpp.c
12
13 EXTRA_SRCS = ppy.y ppl.l
14 EXTRA_OBJS = y.tab.o @LEX_OUTPUT_ROOT@.o
15
16 all: $(MODULE)
17
18 @MAKE_RULES@
19
20 $(MODULE): $(OBJS)
21 $(RM) $@
22 $(AR) $@ $(OBJS)
23 $(RANLIB) $@
24
25 y.tab.c y.tab.h: ppy.y
26 $(YACC) $(YACCOPT) -ppp -d -t $(SRCDIR)/ppy.y
27
28 # hack to allow parallel make
29 y.tab.h: y.tab.c
30 y.tab.o: y.tab.h
31
32 @LEX_OUTPUT_ROOT@.c: ppl.l
33 $(LEX) $(LEXOPT) -d -Ppp -o$@ -8 $(SRCDIR)/ppl.l
34
35 @LEX_OUTPUT_ROOT@.o: y.tab.h
36
37 ### Dependencies: