X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=Makefile;h=97bfaa111ebd18ae7d6948067500702e8ef7e9fb;hb=93ab2b3dc7658be50317765792a8720c54b29807;hp=0e9e02cfec7d6bfd3945b0dc12dd7601731bf3d0;hpb=1c42f5f8ed1972f13424197e9493bbed8e401576;p=apps%2Fpfixtools.git diff --git a/Makefile b/Makefile index 0e9e02c..97bfaa1 100644 --- a/Makefile +++ b/Makefile @@ -34,6 +34,7 @@ all: LDFLAGS += -Wl,--warn-common include mk/cflags.mk +include mk/tc.mk CFLAGS += --std=gnu99 -D_GNU_SOURCE prefix ?= /usr/local @@ -43,9 +44,10 @@ TESTS = tst-rbl GENERATED = tokens.h tokens.c -postlicyd_SOURCES = common.c threads.c str.c buffer.c rbl.c \ - $(GENERATED) postfix.c main-postlicyd.c -postlicyd_LIBADD = -lpthread +postlicyd_SOURCES = common.c threads.c str.c buffer.c $(GENERATED) \ + greylist.c rbl.c main-postlicyd.c +postlicyd_LIBADD = -lpthread $(TC_LIBS) +postlicyd_CFLAGS = $(TC_CFLAGS) pfix-srsd_SOURCES = common.c epoll.c buffer.c str.c main-srsd.c pfix-srsd_LIBADD = -lsrs2 @@ -71,7 +73,7 @@ tags: .tags .tags: $(shell git ls-files | egrep '\.[hc]$$') ctags -o $@ $^ -headers: HEADACHEOPTS=-c mk/headache.cfg -h COPYING +headers: HEADACHEOPTS=-c mk/headache.cfg -h mk/COPYING headers: @which headache > /dev/null || \ ( echo "package headache not installed" ; exit 1 )