2002-07-16 04:33:10 +02:00
|
|
|
TOPSRCDIR = @top_srcdir@
|
|
|
|
TOPOBJDIR = ../..
|
|
|
|
SRCDIR = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
|
|
|
LEXOPT = -Cf #-w -b
|
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
|
2005-09-28 20:17:08 +02:00
|
|
|
EXTRA_OBJS = ppy.tab.o @LEX_OUTPUT_ROOT@.o
|
2002-07-16 04:33:10 +02:00
|
|
|
|
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) $@
|
|
|
|
|
2005-09-28 20:17:08 +02:00
|
|
|
ppy.tab.c ppy.tab.h: ppy.y
|
|
|
|
$(BISON) -ppp -d -t $(SRCDIR)/ppy.y -o ppy.tab.c
|
2002-07-16 04:33:10 +02:00
|
|
|
|
2002-12-15 02:19:53 +01:00
|
|
|
# hack to allow parallel make
|
2005-09-28 20:17:08 +02:00
|
|
|
ppy.tab.h: ppy.tab.c
|
|
|
|
ppy.tab.o: ppy.tab.h
|
2002-12-15 02:19:53 +01:00
|
|
|
|
2002-07-16 04:33:10 +02:00
|
|
|
@LEX_OUTPUT_ROOT@.c: ppl.l
|
|
|
|
$(LEX) $(LEXOPT) -d -Ppp -o$@ -8 $(SRCDIR)/ppl.l
|
|
|
|
|
2005-09-28 20:17:08 +02:00
|
|
|
@LEX_OUTPUT_ROOT@.o: ppy.tab.h
|
2002-08-10 02:03:08 +02:00
|
|
|
|
2002-07-16 04:33:10 +02:00
|
|
|
### Dependencies:
|