1999-02-05 21:37:34 +00:00
|
|
|
source=cf-parse.tab.c cf-lex.c conf.c
|
1999-01-10 00:18:32 +00:00
|
|
|
root-rel=../
|
|
|
|
|
|
|
|
include ../Rules
|
|
|
|
|
|
|
|
conf-src=$(srcdir)/conf
|
1999-01-15 16:49:17 +00:00
|
|
|
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
|
|
|
|
|
2009-08-10 12:13:28 +00:00
|
|
|
cf-parse.tab.h: cf-parse.tab.c
|
|
|
|
|
|
|
|
cf-parse.tab.c: 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
|
|
|
|
2000-03-12 23:04:04 +00:00
|
|
|
commands.h: $(conf-fragments) $(conf-src)/gen_commands.m4 $(srcdir)/client/cmds.m4
|
|
|
|
$(M4) -P $(conf-src)/gen_commands.m4 $(srcdir)/client/cmds.m4 $(conf-fragments) | sort >commands.h
|
2000-01-19 14:37:56 +00:00
|
|
|
|
2009-08-10 10:04:25 +00:00
|
|
|
cf-lex.c: cf-lex.l cf-parse.tab.h
|
2007-06-20 12:32:39 +00:00
|
|
|
$(FLEX) $(FLEX_DEBUG) -s -B -8 -ocf-lex.c -Pcf_ cf-lex.l
|
1998-11-27 19:37:07 +00:00
|
|
|
|
2000-01-19 14:37:56 +00:00
|
|
|
depend: keywords.h commands.h cf-parse.tab.c cf-lex.c
|