2002-07-16 04:33:10 +02:00
|
|
|
TOPSRCDIR = @top_srcdir@
|
|
|
|
TOPOBJDIR = ../..
|
|
|
|
SRCDIR = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
|
|
|
LEXOPT = -Cf #-w -b
|
|
|
|
YACCOPT = #-v
|
2003-05-01 05:16:21 +02:00
|
|
|
MODULE = libwpp.a
|
2002-07-16 04:33:10 +02:00
|
|
|
|
|
|
|
C_SRCS = \
|
|
|
|
preproc.c \
|
|
|
|
wpp.c
|
|
|
|
|
|
|
|
EXTRA_SRCS = ppy.y ppl.l
|
|
|
|
EXTRA_OBJS = y.tab.o @LEX_OUTPUT_ROOT@.o
|
|
|
|
|
2003-05-01 05:16:21 +02:00
|
|
|
all: $(MODULE)
|
2002-07-16 04:33:10 +02:00
|
|
|
|
|
|
|
@MAKE_RULES@
|
|
|
|
|
2003-05-01 05:16:21 +02:00
|
|
|
$(MODULE): $(OBJS)
|
2002-07-16 04:33:10 +02:00
|
|
|
$(RM) $@
|
|
|
|
$(AR) $@ $(OBJS)
|
|
|
|
$(RANLIB) $@
|
|
|
|
|
|
|
|
y.tab.c y.tab.h: ppy.y
|
|
|
|
$(YACC) $(YACCOPT) -ppp -d -t $(SRCDIR)/ppy.y
|
|
|
|
|
2002-12-15 02:19:53 +01:00
|
|
|
# hack to allow parallel make
|
|
|
|
y.tab.h: y.tab.c
|
|
|
|
y.tab.o: y.tab.h
|
|
|
|
|
2002-07-16 04:33:10 +02:00
|
|
|
@LEX_OUTPUT_ROOT@.c: ppl.l
|
|
|
|
$(LEX) $(LEXOPT) -d -Ppp -o$@ -8 $(SRCDIR)/ppl.l
|
|
|
|
|
2002-08-10 02:03:08 +02:00
|
|
|
@LEX_OUTPUT_ROOT@.o: y.tab.h
|
|
|
|
|
2002-07-16 04:33:10 +02:00
|
|
|
### Dependencies:
|