mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-11-17 08:38:42 +00:00
72380a3447
(with exception of printing integers to screen), but they exist.
27 lines
723 B
Makefile
27 lines
723 B
Makefile
source=cf-parse.tab.c cf-lex.c f-util.c
|
|
root-rel=../
|
|
|
|
include ../Rules
|
|
|
|
conf-src=$(srcdir)/conf
|
|
conf-fragments=$(conf-src)/confbase.Y @CONFS@ $(addsuffix /config.Y,$(static-dir-paths)) $(conf-src)/filter.Y
|
|
|
|
ifdef DEBUG
|
|
BISON_DEBUG=-t
|
|
#FLEX_DEBUG=-d
|
|
endif
|
|
|
|
cf-parse.tab.c cf-parse-tab.h: cf-parse.y
|
|
$(BISON) -bcf-parse -dv -pcf_ $(BISON_DEBUG) 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: $(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
|
|
|
|
depend: keywords.h cf-parse.tab.c cf-lex.c
|