X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=postlicyd%2FMakefile;h=3dea836d022eb7c5e0a1d6ea744c91f3d58dddb1;hb=7fa8c1bc673add68529fa2bda8134be5089e8745;hp=5a0ab4913b410138840b95d1f59a09952f8f005e;hpb=8977d252fc44ae953df4bde4a2f1c5895beea4e0;p=apps%2Fpfixtools.git diff --git a/postlicyd/Makefile b/postlicyd/Makefile index 5a0ab49..3dea836 100644 --- a/postlicyd/Makefile +++ b/postlicyd/Makefile @@ -32,12 +32,30 @@ include ../mk/tc.mk PROGRAMS = postlicyd -GENERATED = tokens.h 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 = greylist.c rbl.c main-postlicyd.c $(GENERATED) ../common/lib.a -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 $(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-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