diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2007-10-01 14:17:23 +0200 |
---|---|---|
committer | Johannes Berg <johannes@sipsolutions.net> | 2007-10-01 14:17:23 +0200 |
commit | 74b2bd7184ad32939235be32452d3569bba67370 (patch) | |
tree | 24e2113b9599241793cb0ae38e7bc1fa2736aad4 /Makefile | |
parent | 40c43ecda62039059360b400dde4dc44edc67c3a (diff) | |
download | dovecot-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-- | Makefile | 25 |
1 files changed, 14 insertions, 11 deletions
@@ -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) |