diff options
author | Martin Mares <mj@ucw.cz> | 1998-11-27 20:37:07 +0100 |
---|---|---|
committer | Martin Mares <mj@ucw.cz> | 1998-11-27 20:37:07 +0100 |
commit | 70591fa06481e7935dcf66ec79812c470c71f4c8 (patch) | |
tree | 63c10001645c64464df5d735a85c15bbb8e594fa /conf/Makefile | |
parent | f142750d3420d482d7e9344c71777fdd37754114 (diff) | |
download | bird-70591fa06481e7935dcf66ec79812c470c71f4c8.tar bird-70591fa06481e7935dcf66ec79812c470c71f4c8.zip |
Compile and use the new configuration code by default.
Diffstat (limited to 'conf/Makefile')
-rw-r--r-- | conf/Makefile | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/conf/Makefile b/conf/Makefile new file mode 100644 index 0000000..e448189 --- /dev/null +++ b/conf/Makefile @@ -0,0 +1,24 @@ +CONFS=$(TOPDIR)/conf/confbase.Y @CONFS@$(addprefix $(TOPDIR)/,$(addsuffix /config.Y,$(BASEDIRS))) +OBJS=cf-parse.tab.o cf-lex.o +CONF=$(TOPDIR)/conf + +ifdef DEBUG +BISON_DEBUG=-t +#FLEX_DEBUG=-d +endif + +include $(TOPDIR)/Rules + +cf-parse.tab.c cf-parse-tab.h: cf-parse.y + bison -bcf-parse -dv -pcf_ $(BISON_DEBUG) cf-parse.y + +cf-parse.y: $(CONFS) $(CONF)/gen_parser.m4 + m4 -P $(CONF)/gen_parser.m4 $(CONFS) >cf-parse.y + +keywords.h: $(CONFS) $(CONF)/gen_keywords.m4 + m4 -P $(CONF)/gen_keywords.m4 $(CONFS) >keywords.h + +cf-lex.c: cf-lex.l + flex $(FLEX_DEBUG) -sB8 -ocf-lex.c -Pcf_ cf-lex.l + +dep: keywords.h |