Asynchronous DNS queries on iplist.
[apps/pfixtools.git] / postlicyd / Makefile
index 1fcb76f..380b83a 100644 (file)
@@ -36,16 +36,26 @@ 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   = -L/usr/local/lib -lunbound
 
-postlicyd_SOURCES = main-postlicyd.c ../common/lib.a filter.c config.c $(FILTERS) $(GENERATED)
-postlicyd_LIBADD  = $(TC_LIBS)
+FILTERS                = iplist.c greylist.c match.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)
+
+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