diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2008-05-31 10:26:46 +0200 |
---|---|---|
committer | Johannes Berg <johannes@sipsolutions.net> | 2008-05-31 10:26:46 +0200 |
commit | 38db5199da4be4832bf852244951a07b0bc28edb (patch) | |
tree | 9b5b486a68d8eaab45b2939a03e51fd2f96507ac /Makefile | |
parent | 1322d31e70e1bab05113251af140d82706ec5e57 (diff) | |
download | dovecot-antispam-38db5199da4be4832bf852244951a07b0bc28edb.tar.gz dovecot-antispam-38db5199da4be4832bf852244951a07b0bc28edb.tar.xz dovecot-antispam-38db5199da4be4832bf852244951a07b0bc28edb.zip |
clean up building a bit
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 11 |
1 files changed, 5 insertions, 6 deletions
@@ -8,7 +8,7 @@ INSTALLDIR ?= $(moduledir)/imap CFLAGS := $(CFLAGSORIG) # includes/flags we need for building a dovecot plugin -CFLAGS += -DHAVE_CONFIG_H -Wall +CFLAGS += -DHAVE_CONFIG_H CFLAGS += -I$(DOVECOT)/ CFLAGS += -I$(DOVECOT)/src/ CFLAGS += -I$(DOVECOT)/src/lib/ @@ -39,11 +39,10 @@ endif objs += antispam-storage-$(DOVECOT_VERSION).o ifeq ("$(DOVECOT_VERSION)", "1.0") CFLAGS += -DCONFIG_DOVECOT_10 -CFLAGS += -Dstr_array_length=strarray_length -CFLAGS += "-Dmempool_unref(x)=pool_unref(*(x))" else +ifeq ("$(DOVECOT_VERSION)", "1.1") CFLAGS += -DCONFIG_DOVECOT_11 -CFLAGS += "-Dmempool_unref(x)=pool_unref(x)" +endif endif # backend error check @@ -69,14 +68,14 @@ CFLAGS += -fPIC -shared -Wall -Wextra -DPLUGINNAME=$(PLUGINNAME) CC ?= "gcc" objs += antispam-plugin.o $(BACKEND).o -ALL = plugin +ALL = $(LIBRARY_NAME) all: verify_config $(ALL) %.o: %.c $(CONFIG) antispam-plugin.h $(CC) -c $(CFLAGS) -o $@ $< -plugin: $(objs) +$(LIBRARY_NAME): $(objs) $(CC) $(CFLAGS) $(objs) -o $(LIBRARY_NAME) $(LDFLAGS) clean: |