]> git.ipfire.org Git - thirdparty/bird.git/blame - conf/Makefile
Channelize: rt_notify arg conversion table -> channel
[thirdparty/bird.git] / conf / Makefile
CommitLineData
31b3e1bb 1source=cf-parse.tab.c cf-lex.c conf.c
49e7e5ee
MM
2root-rel=../
3
4include ../Rules
5
6conf-src=$(srcdir)/conf
b9d70dc8 7conf-fragments=$(conf-src)/confbase.Y @CONFS@ $(addsuffix /config.Y,$(static-dir-paths))
70591fa0
MM
8
9ifdef DEBUG
10BISON_DEBUG=-t
11#FLEX_DEBUG=-d
12endif
13
ea9097ea
OZ
14cf-parse.tab.h: cf-parse.tab.c
15
16cf-parse.tab.c: cf-parse.y
49e7e5ee 17 $(BISON) -bcf-parse -dv -pcf_ $(BISON_DEBUG) cf-parse.y
70591fa0 18
49e7e5ee
MM
19cf-parse.y: $(conf-fragments) $(conf-src)/gen_parser.m4
20 $(M4) -P $(conf-src)/gen_parser.m4 $(conf-fragments) >cf-parse.y
70591fa0 21
49e7e5ee
MM
22keywords.h: $(conf-fragments) $(conf-src)/gen_keywords.m4
23 $(M4) -P $(conf-src)/gen_keywords.m4 $(conf-fragments) >keywords.h
70591fa0 24
abf2be7d
MM
25commands.h: $(conf-fragments) $(conf-src)/gen_commands.m4 $(srcdir)/client/cmds.m4
26 $(M4) -P $(conf-src)/gen_commands.m4 $(srcdir)/client/cmds.m4 $(conf-fragments) | sort >commands.h
f50b9e48 27
e75d3c74 28cf-lex.c: cf-lex.l
a456788b 29 $(FLEX) $(FLEX_DEBUG) -s -B -8 -ocf-lex.c -Pcf_ cf-lex.l
70591fa0 30
f50b9e48 31depend: keywords.h commands.h cf-parse.tab.c cf-lex.c