-postlicyd_SOURCES = common.c str.c buffer.c daemon.c rbl.c postfix.c \
- $(GENERATED) postlicyd.c
-postlicyd_LIBADD = -lpthread
+postlicyd_SOURCES = common.c threads.c str.c buffer.c \
+ greylist.c rbl.c \
+ $(GENERATED) postfix.c main-postlicyd.c
+postlicyd_LIBADD = -lpthread $(TC_LIBS)
+postlicyd_CFLAGS = $(TC_CFLAGS)