2019-02-12 00:12:48 +08:00
|
|
|
src := filter.c data.c f-util.c tree.c trie.c inst-gen.c
|
2016-04-12 17:14:54 +08:00
|
|
|
obj := $(src-o-files)
|
|
|
|
$(all-daemon)
|
|
|
|
$(cf-local)
|
2016-11-09 23:36:34 +08:00
|
|
|
|
2019-02-11 23:44:14 +08:00
|
|
|
$(conf-y-targets) $(conf-lex-targets) $(src-o-files): $(o)inst-gen.h
|
2019-02-11 22:27:47 +08:00
|
|
|
|
2018-12-20 23:25:54 +08:00
|
|
|
M4FLAGS_FILTERS=$(filter-out -s,$(M4FLAGS))
|
|
|
|
|
2018-12-27 21:26:11 +08:00
|
|
|
$(o)f-inst-postfixify.c: $(s)postfixify.m4 $(s)f-inst.c $(objdir)/.dir-stamp
|
|
|
|
$(M4) $(M4FLAGS_FILTERS) -P $^ >$@
|
|
|
|
|
|
|
|
$(o)f-inst-interpret.c: $(s)interpret.m4 $(s)f-inst.c $(objdir)/.dir-stamp
|
|
|
|
$(M4) $(M4FLAGS_FILTERS) -P $^ >$@
|
|
|
|
|
|
|
|
$(o)f-inst-same.c: $(s)same.m4 $(s)f-inst.c $(objdir)/.dir-stamp
|
|
|
|
$(M4) $(M4FLAGS_FILTERS) -P $^ >$@
|
|
|
|
|
2019-02-11 23:44:14 +08: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 16:17:54 +08:00
|
|
|
|
2018-12-27 21:26:11 +08:00
|
|
|
$(o)f-inst-dump.c: $(s)dump.m4 $(s)f-inst.c $(objdir)/.dir-stamp
|
|
|
|
$(M4) $(M4FLAGS_FILTERS) -P $^ >$@
|
|
|
|
|
2019-02-11 23:44:14 +08:00
|
|
|
$(o)filter.o: $(o)f-inst-interpret.c $(o)f-inst-postfixify.c $(o)f-inst-same.c $(o)f-inst-dump.c $(o)inst-gen.h
|
2018-12-20 23:25:54 +08:00
|
|
|
|
2016-11-09 23:36:34 +08: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)
|