aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteffen Kaiser <Steffen.Kaiser@fh-bonn-rhein-sieg.de>2008-03-16 19:12:45 +0100
committerJohannes Berg <johannes@sipsolutions.net>2008-03-16 19:12:45 +0100
commitf830fd1494e0b05d9fcd48aa0c9eb0a32138e4eb (patch)
treed7abc62a9aa1a4dfe0709d60e4cdaa525c63b4a6
parent0c7ddc116b1594285b490f5ed2ff035dfd5614bc (diff)
downloaddovecot-antispam-f830fd1494e0b05d9fcd48aa0c9eb0a32138e4eb.tar.gz
dovecot-antispam-f830fd1494e0b05d9fcd48aa0c9eb0a32138e4eb.tar.xz
dovecot-antispam-f830fd1494e0b05d9fcd48aa0c9eb0a32138e4eb.zip
autoget Dovecot plugin dir
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 74bc4d9..6496448 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,11 @@
# include config file
+CFLAGSORIG := $(CFLAGS)
CONFIG ?= .config
-include $(CONFIG)
+-include $(DOVECOT)/dovecot-config
+INSTALLDIR ?= $(moduledir)/imap
+# Kill CFLAGS from dovecot-config
+CFLAGS := $(CFLAGSORIG)
# includes/flags we need for building a dovecot plugin
CFLAGS += -DHAVE_CONFIG_H