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
|
|
|
|
|
2009-08-10 18:04:25 +08:00
|
|
|
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
|
|
|
|
2000-03-13 07:04:04 +08: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 22:37:56 +08:00
|
|
|
|
2009-08-10 18:04:25 +08:00
|
|
|
cf-lex.c: cf-lex.l cf-parse.tab.h
|
2007-06-20 20:32:39 +08:00
|
|
|
$(FLEX) $(FLEX_DEBUG) -s -B -8 -ocf-lex.c -Pcf_ cf-lex.l
|
1998-11-28 03:37:07 +08:00
|
|
|
|
2000-01-19 22:37:56 +08:00
|
|
|
depend: keywords.h commands.h cf-parse.tab.c cf-lex.c
|