aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 717c58d..691835f 100644
--- a/Makefile
+++ b/Makefile
@@ -13,7 +13,7 @@ CFLAGS += -I$(DOVECOT)/src/imap/
# per-backend configuration
ifeq ("$(BACKEND)", "dspam-exec")
-CFLAGS += -DCONFIG_PLUGIN_WANT_SIGNATURE=1
+CFLAGS += -DBACKEND_WANT_SIGNATURE=1
# can take a while, check more often
CFLAGS += -DCOPY_CHECK_INTERVAL=10
endif
@@ -38,8 +38,11 @@ ALL = antispam
all: verify_config $(ALL)
+%.o: %.c .config
+ $(CC) -c $(CFLAGS) -o $@ $<
+
antispam: $(objs)
- $(CC) $(CFLAGS) $(INCLUDES) $(objs) -o $@.so $(LDFLAGS)
+ $(CC) $(CFLAGS) $(objs) -o $@.so $(LDFLAGS)
clean:
rm -f *.so *.o *~