X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=postlicyd%2FMakefile;h=386d2af161d36ecfae4308c6135a1062913cf342;hb=cc9c0c5e5484188cc144aed151d7213af140771a;hp=1fcb76f068902d1eb0457c24181a9aa08062e824;hpb=5c75febadf099c0a656b3b8072b14ec14b38c2f6;p=apps%2Fpfixtools.git diff --git a/postlicyd/Makefile b/postlicyd/Makefile index 1fcb76f..386d2af 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 +UB_LIBS = -lunbound -postlicyd_SOURCES = main-postlicyd.c ../common/lib.a filter.c config.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 $(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 $(GENERATED) +tst-rbl_LIBADD = $(UB_LIBS) -lev + +tst-filters_SOURCES = tst-filters.c ../common/lib.a config.c filter.c query.c $(FILTERS) $(GENERATED) +tst-filters_LIBADD = $(UB_LIBS) $(TC_LIBS) -lev + +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