]> git.ipfire.org Git - thirdparty/bird.git/blob - conf/Makefile
Doc: Allow overriding $SGML_CATALOG_FILES using distribution specific paths
[thirdparty/bird.git] / conf / Makefile
1 source=cf-parse.tab.c cf-lex.c conf.c
2 root-rel=../
3
4 include ../Rules
5
6 conf-src=$(srcdir)/conf
7 conf-fragments=$(conf-src)/confbase.Y @CONFS@ $(addsuffix /config.Y,$(static-dir-paths))
8
9 ifdef DEBUG
10 BISON_DEBUG=-t
11 #FLEX_DEBUG=-d
12 endif
13
14 cf-parse.tab.h: cf-parse.tab.c
15
16 cf-parse.tab.c: cf-parse.y
17 $(BISON) -bcf-parse -dv -pcf_ $(BISON_DEBUG) cf-parse.y
18
19 cf-parse.y: $(conf-fragments) $(conf-src)/gen_parser.m4
20 $(M4) -P $(conf-src)/gen_parser.m4 $(conf-fragments) >cf-parse.y
21
22 keywords.h: $(conf-fragments) $(conf-src)/gen_keywords.m4
23 $(M4) -P $(conf-src)/gen_keywords.m4 $(conf-fragments) >keywords.h
24
25 commands.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
27
28 cf-lex.c: cf-lex.l
29 $(FLEX) $(FLEX_DEBUG) -s -B -8 -ocf-lex.c -Pcf_ cf-lex.l
30
31 depend: keywords.h commands.h cf-parse.tab.c cf-lex.c
32
33 cf-lex.o: CFLAGS+=-Wno-sign-compare -Wno-unused-function