X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=postlicyd%2FMakefile;h=cdbca81dae7c161e8a3a886bc9004e557eb57145;hb=76226c6f7b43aaa6480f776f70fb62f4a3e937df;hp=7901504d1db19b9fe314f06676f3c43a9f6e429c;hpb=e6d0c7ab6103af206f95c1291b29c3f151a41484;p=apps%2Fpfixtools.git diff --git a/postlicyd/Makefile b/postlicyd/Makefile index 7901504..cdbca81 100644 --- a/postlicyd/Makefile +++ b/postlicyd/Makefile @@ -36,16 +36,27 @@ 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 = test-rbl +TESTS = tst-rbl tst-filters tst-greylist -FILTERS = rbl.c greylist.c strlist.c match.c +UB_LIBS = -lunbound -postlicyd_SOURCES = main-postlicyd.c ../common/lib.a filter.c config.c query.c $(FILTERS) $(GENERATED) -postlicyd_LIBADD = $(TC_LIBS) +FILTERS = iplist.c greylist.c strlist.c match.c counters.c -tst-rbl_SOURCES = tst-rbl.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) hook_tokens.h hook_tokens.c: $(FILTERS) param_tokens.c param_tokens.h: $(FILTERS) config.c +all: + include ../mk/common.mk