Revision 49e7e5ee conf/Makefile

View differences:

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
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))
4 8

  
5 9
ifdef DEBUG
6 10
BISON_DEBUG=-t
7 11
#FLEX_DEBUG=-d
8 12
endif
9 13

  
10
include $(TOPDIR)/Rules
11

  
12 14
cf-parse.tab.c cf-parse-tab.h: cf-parse.y
13
	bison -bcf-parse -dv -pcf_ $(BISON_DEBUG) cf-parse.y
15
	$(BISON) -bcf-parse -dv -pcf_ $(BISON_DEBUG) cf-parse.y
14 16

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

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

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

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

Also available in: Unified diff