X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=postlicyd%2FMakefile;h=e0b8474352fda7a300d8ae35c2d334d818d3982f;hb=8847829f22135d594241a9c51877966e7cb0716a;hp=e4eb9ab92d7dfc55d10729e6e5f86a18ec760098;hpb=70ec82c2314c3271f080ea6fccc6e8e4964c39d3;p=apps%2Fpfixtools.git diff --git a/postlicyd/Makefile b/postlicyd/Makefile index e4eb9ab..e0b8474 100644 --- a/postlicyd/Makefile +++ b/postlicyd/Makefile @@ -32,12 +32,33 @@ include ../mk/tc.mk PROGRAMS = postlicyd -GENERATED = policy_tokens.h policy_tokens.c filter_tokens.h filter_tokens.c -TESTS = test-rbl +GENERATED = policy_tokens.h policy_tokens.c \ + filter_tokens.h filter_tokens.c \ + hook_tokens.h hook_tokens.c \ + param_tokens.h param_tokens.c +TESTS = tst-rbl tst-filters tst-greylist tst-qf -postlicyd_SOURCES = main-postlicyd.c ../common/lib.a filter.c config.c greylist.c rbl.c $(GENERATED) -postlicyd_LIBADD = $(TC_LIBS) +UB_LIBS = -lunbound -tst-rbl_SOURCES = tst-rbl.c +FILTERS = iplist.c greylist.c strlist.c match.c counters.c + +postlicyd_SOURCES = main-postlicyd.c ../common/lib.a filter.c config.c query.c resources.c $(FILTERS) $(GENERATED) +postlicyd_LIBADD = $(UB_LIBS) $(TC_LIBS) -lev + +tst-rbl_SOURCES = tst-rbl.c ../common/lib.a filter.c config.c query.c iplist.c resources.c $(GENERATED) +tst-rbl_LIBADD = $(UB_LIBS) -lev + +tst-filters_SOURCES = tst-filters.c ../common/lib.a config.c filter.c query.c resources.c $(FILTERS) $(GENERATED) +tst-filters_LIBADD = $(UB_LIBS) $(TC_LIBS) -lev + +tst-greylist_SOURCES = tst-greylist.c resources.c ../common/lib.a +tst-greylist_LIBADD = $(TC_LIBS) + +tst-qf_SOURCES = tst-qf.c query.c ../common/lib.a $(GENERATED) + +all: + +hook_tokens.h hook_tokens.c: $(FILTERS) +param_tokens.c param_tokens.h: $(FILTERS) config.c include ../mk/common.mk