2019-02-11 16:12:48 +00:00
|
|
|
src := filter.c data.c f-util.c tree.c trie.c inst-gen.c
|
2016-04-12 09:14:54 +00:00
|
|
|
obj := $(src-o-files)
|
|
|
|
$(all-daemon)
|
|
|
|
$(cf-local)
|
2016-11-09 15:36:34 +00:00
|
|
|
|
2019-02-11 15:44:14 +00:00
|
|
|
$(conf-y-targets) $(conf-lex-targets) $(src-o-files): $(o)inst-gen.h
|
2019-02-11 14:27:47 +00:00
|
|
|
|
2018-12-20 15:25:54 +00:00
|
|
|
M4FLAGS_FILTERS=$(filter-out -s,$(M4FLAGS))
|
|
|
|
|
2019-02-11 15:44:14 +00:00
|
|
|
$(o)inst-gen.h: $(s)decl.m4 $(s)f-inst.c $(objdir)/.dir-stamp
|
|
|
|
$(M4) $(M4FLAGS_FILTERS) -DTARGET=H -P $^ >$@
|
|
|
|
|
|
|
|
$(o)inst-gen.c: $(s)decl.m4 $(s)f-inst.c $(objdir)/.dir-stamp
|
|
|
|
$(M4) $(M4FLAGS_FILTERS) -DTARGET=C -P $^ >$@
|
2019-01-21 08:17:54 +00:00
|
|
|
|
2019-02-19 11:34:16 +00:00
|
|
|
$(o)inst-interpret.c: $(s)decl.m4 $(s)f-inst.c $(objdir)/.dir-stamp
|
|
|
|
$(M4) $(M4FLAGS_FILTERS) -DTARGET=I -P $^ >$@
|
|
|
|
|
|
|
|
$(o)filter.o: $(o)inst-interpret.c $(o)inst-gen.h
|
2018-12-20 15:25:54 +00:00
|
|
|
|
2016-11-09 15:36:34 +00:00
|
|
|
tests_src := tree_test.c filter_test.c trie_test.c
|
|
|
|
tests_targets := $(tests_targets) $(tests-target-files)
|
|
|
|
tests_objs := $(tests_objs) $(src-o-files)
|
2019-02-12 13:16:28 +00:00
|
|
|
|
2019-02-19 11:34:16 +00:00
|
|
|
$(call clean,inst-gen.h inst-gen.c inst-interpret.c)
|