aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-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