summaryrefslogtreecommitdiffstats
path: root/conf/Makefile
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>1999-01-10 01:18:32 +0100
committerMartin Mares <mj@ucw.cz>1999-01-10 01:18:32 +0100
commit49e7e5ee0b2848f5bf120a962e2e7eb11b86566a (patch)
tree56e7c215f49ab59792b5cf0194fa5045a66943c7 /conf/Makefile
parent2f9bcf9713523f6fefecd143cc2aa2a8dda7f27f (diff)
downloadbird-49e7e5ee0b2848f5bf120a962e2e7eb11b86566a.tar
bird-49e7e5ee0b2848f5bf120a962e2e7eb11b86566a.zip
New makefiles. Includes support for out-of-source-tree builds.
Diffstat (limited to 'conf/Makefile')
-rw-r--r--conf/Makefile26
1 files changed, 14 insertions, 12 deletions
diff --git a/conf/Makefile b/conf/Makefile
index e448189..270d556 100644
--- a/conf/Makefile
+++ b/conf/Makefile
@@ -1,24 +1,26 @@
-CONFS=$(TOPDIR)/conf/confbase.Y @CONFS@$(addprefix $(TOPDIR)/,$(addsuffix /config.Y,$(BASEDIRS)))
-OBJS=cf-parse.tab.o cf-lex.o
-CONF=$(TOPDIR)/conf
+source=cf-parse.tab.c cf-lex.c
+root-rel=../
+
+include ../Rules
+
+conf-src=$(srcdir)/conf
+conf-fragments=$(conf-src)/confbase.Y @CONFS@ $(addsuffix /config.Y,$(static-dir-paths))
ifdef DEBUG
BISON_DEBUG=-t
#FLEX_DEBUG=-d
endif
-include $(TOPDIR)/Rules
-
cf-parse.tab.c cf-parse-tab.h: cf-parse.y
- bison -bcf-parse -dv -pcf_ $(BISON_DEBUG) cf-parse.y
+ $(BISON) -bcf-parse -dv -pcf_ $(BISON_DEBUG) cf-parse.y
-cf-parse.y: $(CONFS) $(CONF)/gen_parser.m4
- m4 -P $(CONF)/gen_parser.m4 $(CONFS) >cf-parse.y
+cf-parse.y: $(conf-fragments) $(conf-src)/gen_parser.m4
+ $(M4) -P $(conf-src)/gen_parser.m4 $(conf-fragments) >cf-parse.y
-keywords.h: $(CONFS) $(CONF)/gen_keywords.m4
- m4 -P $(CONF)/gen_keywords.m4 $(CONFS) >keywords.h
+keywords.h: $(conf-fragments) $(conf-src)/gen_keywords.m4
+ $(M4) -P $(conf-src)/gen_keywords.m4 $(conf-fragments) >keywords.h
cf-lex.c: cf-lex.l
- flex $(FLEX_DEBUG) -sB8 -ocf-lex.c -Pcf_ cf-lex.l
+ $(FLEX) $(FLEX_DEBUG) -sB8 -ocf-lex.c -Pcf_ cf-lex.l
-dep: keywords.h
+depend: keywords.h cf-parse.tab.c cf-lex.c