1999-02-06 05:37:34 +08:00
|
|
|
source=cf-parse.tab.c cf-lex.c conf.c
|
1999-01-10 08:18:32 +08:00
|
|
|
root-rel=../
|
|
|
|
|
|
|
|
include ../Rules
|
|
|
|
|
|
|
|
conf-src=$(srcdir)/conf
|
1999-01-16 00:49:17 +08:00
|
|
|
conf-fragments=$(conf-src)/confbase.Y @CONFS@ $(addsuffix /config.Y,$(static-dir-paths))
|
1998-11-28 03:37:07 +08:00
|
|
|
|
|
|
|
ifdef DEBUG
|
|
|
|
BISON_DEBUG=-t
|
|
|
|
#FLEX_DEBUG=-d
|
|
|
|
endif
|
|
|
|
|
|
|
|
cf-parse.tab.c cf-parse-tab.h: cf-parse.y
|
1999-01-10 08:18:32 +08:00
|
|
|
$(BISON) -bcf-parse -dv -pcf_ $(BISON_DEBUG) cf-parse.y
|
1998-11-28 03:37:07 +08:00
|
|
|
|
1999-01-10 08:18:32 +08:00
|
|
|
cf-parse.y: $(conf-fragments) $(conf-src)/gen_parser.m4
|
|
|
|
$(M4) -P $(conf-src)/gen_parser.m4 $(conf-fragments) >cf-parse.y
|
1998-11-28 03:37:07 +08:00
|
|
|
|
1999-01-10 08:18:32 +08:00
|
|
|
keywords.h: $(conf-fragments) $(conf-src)/gen_keywords.m4
|
|
|
|
$(M4) -P $(conf-src)/gen_keywords.m4 $(conf-fragments) >keywords.h
|
1998-11-28 03:37:07 +08:00
|
|
|
|
|
|
|
cf-lex.c: cf-lex.l
|
1999-01-10 08:18:32 +08:00
|
|
|
$(FLEX) $(FLEX_DEBUG) -sB8 -ocf-lex.c -Pcf_ cf-lex.l
|
1998-11-28 03:37:07 +08:00
|
|
|
|
1999-01-10 08:18:32 +08:00
|
|
|
depend: keywords.h cf-parse.tab.c cf-lex.c
|