aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2007-10-01 14:17:23 +0200
committerJohannes Berg <johannes@sipsolutions.net>2007-10-01 14:17:23 +0200
commit74b2bd7184ad32939235be32452d3569bba67370 (patch)
tree24e2113b9599241793cb0ae38e7bc1fa2736aad4 /Makefile
parent40c43ecda62039059360b400dde4dc44edc67c3a (diff)
downloaddovecot-antispam-74b2bd7184ad32939235be32452d3569bba67370.tar.gz
dovecot-antispam-74b2bd7184ad32939235be32452d3569bba67370.tar.xz
dovecot-antispam-74b2bd7184ad32939235be32452d3569bba67370.zip
start box plugin experiment, seems not to work
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile25
1 files changed, 14 insertions, 11 deletions
diff --git a/Makefile b/Makefile
index a2620de..74a3406 100644
--- a/Makefile
+++ b/Makefile
@@ -11,14 +11,6 @@ CFLAGS += -I$(DOVECOT)/src/lib-mail/
CFLAGS += -I$(DOVECOT)/src/lib-imap/
CFLAGS += -I$(DOVECOT)/src/imap/
-# per-backend configuration
-ifeq ("$(BACKEND)", "dspam-exec")
-CFLAGS += -DBACKEND_WANTS_SIGNATURE=1
-# can take a while, check more often
-CFLAGS += -DCOPY_CHECK_INTERVAL=10
-endif
-
-
# debug rules
ifeq ("$(DEBUG)", "stderr")
CFLAGS += -DCONFIG_DEBUG -DDEBUG_STDERR
@@ -29,18 +21,29 @@ objs += debug.o
endif
# dovecot version rules
-CFLAGS += -DDOVECOT_VER=$(DOVECOT_VERSION)
+objs += antispam-storage-$(DOVECOT_VERSION).o
+ifeq ("$(DOVECOT_VERSION)", "1.0")
+CFLAGS += -Dstr_array_length=strarray_length
+CFLAGS += "-Dmempool_unref(x)=pool_unref(*(x))"
+else
+CFLAGS += "-Dmempool_unref(x)=pool_unref(x)"
+endif
+
+# per-backend rules
+ifeq ("$(BACKEND)", "dspam-exec")
+objs += signature.o
+endif
# main make rules
CFLAGS += -fPIC -shared -Wall
CC ?= "gcc"
-objs += plugin.o $(BACKEND).o
+objs += antispam-plugin.o $(BACKEND).o
ALL = antispam
all: verify_config $(ALL)
-%.o: %.c .config
+%.o: %.c .config antispam-plugin.h
$(CC) -c $(CFLAGS) -o $@ $<
antispam: $(objs)