X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=postlicyd%2FMakefile;h=380b83a11b10764da09b00607cb790e9a6648a7f;hb=6deab7a7086ccb592daa0c41e12759ec0b9c7aa0;hp=e4eb9ab92d7dfc55d10729e6e5f86a18ec760098;hpb=70ec82c2314c3271f080ea6fccc6e8e4964c39d3;p=apps%2Fpfixtools.git diff --git a/postlicyd/Makefile b/postlicyd/Makefile index e4eb9ab..380b83a 100644 --- a/postlicyd/Makefile +++ b/postlicyd/Makefile @@ -32,12 +32,30 @@ 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 -postlicyd_SOURCES = main-postlicyd.c ../common/lib.a filter.c config.c greylist.c rbl.c $(GENERATED) -postlicyd_LIBADD = $(TC_LIBS) +UB_LIBS = -L/usr/local/lib -lunbound -tst-rbl_SOURCES = tst-rbl.c +FILTERS = iplist.c greylist.c match.c + +postlicyd_SOURCES = main-postlicyd.c ../common/lib.a filter.c config.c query.c $(FILTERS) $(GENERATED) +postlicyd_LIBADD = $(UB_LIBS) $(TC_LIBS) + +tst-rbl_SOURCES = tst-rbl.c ../common/lib.a filter.c config.c query.c iplist.c $(GENERATED) + +tst-filters_SOURCES = tst-filters.c ../common/lib.a config.c filter.c query.c $(FILTERS) $(GENERATED) +tst-filters_LIBADD = $(UB_LIBS) $(TC_LIBS) + +tst-greylist_SOURCES = tst-greylist.c ../common/lib.a +tst-greylist_LIBADD = $(TC_LIBS) + +hook_tokens.h hook_tokens.c: $(FILTERS) +param_tokens.c param_tokens.h: $(FILTERS) config.c + +all: include ../mk/common.mk