1999-01-10 00:18:32 +00:00
|
|
|
source=cf-parse.tab.c cf-lex.c
|
|
|
|
root-rel=../
|
|
|
|
|
|
|
|
include ../Rules
|
|
|
|
|
|
|
|
conf-src=$(srcdir)/conf
|
|
|
|
conf-fragments=$(conf-src)/confbase.Y @CONFS@ $(addsuffix /config.Y,$(static-dir-paths))
|
1998-11-27 19:37:07 +00:00
|
|
|
|
|
|
|
ifdef DEBUG
|
|
|
|
BISON_DEBUG=-t
|
|
|
|
#FLEX_DEBUG=-d
|
|
|
|
endif
|
|
|
|
|
|
|
|
cf-parse.tab.c cf-parse-tab.h: cf-parse.y
|
1999-01-10 00:18:32 +00:00
|
|
|
$(BISON) -bcf-parse -dv -pcf_ $(BISON_DEBUG) cf-parse.y
|
1998-11-27 19:37:07 +00:00
|
|
|
|
1999-01-10 00:18:32 +00: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-27 19:37:07 +00:00
|
|
|
|
1999-01-10 00:18:32 +00:00
|
|
|
keywords.h: $(conf-fragments) $(conf-src)/gen_keywords.m4
|
|
|
|
$(M4) -P $(conf-src)/gen_keywords.m4 $(conf-fragments) >keywords.h
|
1998-11-27 19:37:07 +00:00
|
|
|
|
|
|
|
cf-lex.c: cf-lex.l
|
1999-01-10 00:18:32 +00:00
|
|
|
$(FLEX) $(FLEX_DEBUG) -sB8 -ocf-lex.c -Pcf_ cf-lex.l
|
1998-11-27 19:37:07 +00:00
|
|
|
|
1999-01-10 00:18:32 +00:00
|
|
|
depend: keywords.h cf-parse.tab.c cf-lex.c
|