aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2008-05-30 11:13:44 +0200
committerJohannes Berg <johannes@sipsolutions.net>2008-05-30 11:13:44 +0200
commit0069f349d922b6cd43b060e61e7478dedfa4fcf1 (patch)
tree61175ce5cac2712377012c6e6dea385b3df2ed35
parente99cd8c4af775feb8d45fa9573d519538780633a (diff)
downloaddovecot-antispam-0069f349d922b6cd43b060e61e7478dedfa4fcf1.tar.gz
dovecot-antispam-0069f349d922b6cd43b060e61e7478dedfa4fcf1.tar.xz
dovecot-antispam-0069f349d922b6cd43b060e61e7478dedfa4fcf1.zip
allow .config to add cflags
-rw-r--r--Makefile2
-rw-r--r--defconfig3
2 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 55a99cb..7096a01 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
# include config file
-CFLAGSORIG := $(CFLAGS)
CONFIG ?= .config
-include $(CONFIG)
+CFLAGSORIG := $(CFLAGS)
-include $(DOVECOT)/dovecot-config
INSTALLDIR ?= $(moduledir)/imap
# Kill CFLAGS from dovecot-config
diff --git a/defconfig b/defconfig
index 3891ca1..dbea209 100644
--- a/defconfig
+++ b/defconfig
@@ -52,3 +52,6 @@ GROUP=root
# (because, for example, you need two instances for different
# spam filters installed)
PLUGINNAME=antispam
+
+# extra CFLAGS
+# CFLAGS += -g3