Statistics
| Branch: | Revision:

iof-bird-daemon / conf / Makefile @ 7152e5ef

History | View | Annotate | Download (802 Bytes)

1
src := cf-parse.tab.c cf-lex.c conf.c
2
obj := $(src-o-files)
3

    
4
$(all-daemon)
5

    
6
ifdef DEBUG
7
BISON_DEBUG=-t
8
#FLEX_DEBUG=-d
9
endif
10

    
11
$(o)cf-parse.tab.h: $(o)cf-parse.tab.c
12

    
13
$(o)cf-parse.tab.c: $(o)cf-parse.y
14
	echo $< $@ $(o)
15
	$(BISON) -b$(@:.tab.c=) -dv -pcf_ $(BISON_DEBUG) $<
16

    
17
$(conf-y-targets): $(s)confbase.Y
18
	$(M4) -P $| $^ >$@
19

    
20
$(o)cf-parse.y: | $(s)gen_parser.m4
21
$(o)keywords.h: | $(s)gen_keywords.m4
22
$(o)commands.h: | $(s)gen_commands.m4 $(srcdir)/client/cmds.m4
23

    
24
$(o)cf-lex.c: $(s)cf-lex.l $(o)cf-parse.tab.h $(o)keywords.h $(o)commands.h
25
	$(FLEX) $(FLEX_DEBUG) -s -B -8 -o$@ -Pcf_ $<
26

    
27
$(addprefix $(o),cf-parse.tab.h cf-parse.tab.c cf-parse.y keywords.h commands.h cf-lex.c): $(objdir)/.dir-stamp
28

    
29
$(call clean,cf-parse.tab.h cf-parse.tab.c cf-parse.y keywords.h commands.h cf-lex.c cf-parse.output)