]> git.ipfire.org Git - thirdparty/bird.git/blob - conf/Makefile
Compile and use the new configuration code by default.
[thirdparty/bird.git] / conf / Makefile
1 CONFS=$(TOPDIR)/conf/confbase.Y @CONFS@$(addprefix $(TOPDIR)/,$(addsuffix /config.Y,$(BASEDIRS)))
2 OBJS=cf-parse.tab.o cf-lex.o
3 CONF=$(TOPDIR)/conf
4
5 ifdef DEBUG
6 BISON_DEBUG=-t
7 #FLEX_DEBUG=-d
8 endif
9
10 include $(TOPDIR)/Rules
11
12 cf-parse.tab.c cf-parse-tab.h: cf-parse.y
13 bison -bcf-parse -dv -pcf_ $(BISON_DEBUG) cf-parse.y
14
15 cf-parse.y: $(CONFS) $(CONF)/gen_parser.m4
16 m4 -P $(CONF)/gen_parser.m4 $(CONFS) >cf-parse.y
17
18 keywords.h: $(CONFS) $(CONF)/gen_keywords.m4
19 m4 -P $(CONF)/gen_keywords.m4 $(CONFS) >keywords.h
20
21 cf-lex.c: cf-lex.l
22 flex $(FLEX_DEBUG) -sB8 -ocf-lex.c -Pcf_ cf-lex.l
23
24 dep: keywords.h