X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=postlicyd%2FMakefile;h=cdbca81dae7c161e8a3a886bc9004e557eb57145;hb=76226c6f7b43aaa6480f776f70fb62f4a3e937df;hp=84dec145d22c709212fdb70ba49f85626fd0a28f;hpb=91da9fe6f37e6a82b226622e1a3e90ee85a9a138;p=apps%2Fpfixtools.git diff --git a/postlicyd/Makefile b/postlicyd/Makefile index 84dec14..cdbca81 100644 --- a/postlicyd/Makefile +++ b/postlicyd/Makefile @@ -36,18 +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 tst-filters +TESTS = tst-rbl tst-filters tst-greylist -FILTERS = iplist.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 -tst-filters_SOURCES = tst-filters.c ../common/lib.a config.c filter.c query.c $(FILTERS) $(GENERATED) -tst-filters_LIBADD = $(TC_LIBS) +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