Statistics
| Branch: | Revision:

iof-bird-daemon / conf / Makefile @ 49e7e5ee

History | View | Annotate | Download (693 Bytes)

1
source=cf-parse.tab.c cf-lex.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.c cf-parse-tab.h: cf-parse.y
15
	$(BISON) -bcf-parse -dv -pcf_ $(BISON_DEBUG) cf-parse.y
16

    
17
cf-parse.y: $(conf-fragments) $(conf-src)/gen_parser.m4
18
	$(M4) -P $(conf-src)/gen_parser.m4 $(conf-fragments) >cf-parse.y
19

    
20
keywords.h: $(conf-fragments) $(conf-src)/gen_keywords.m4
21
	$(M4) -P $(conf-src)/gen_keywords.m4 $(conf-fragments) >keywords.h
22

    
23
cf-lex.c: cf-lex.l
24
	$(FLEX) $(FLEX_DEBUG) -sB8 -ocf-lex.c -Pcf_ cf-lex.l
25

    
26
depend: keywords.h cf-parse.tab.c cf-lex.c