aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 74a3406..2b0a1e0 100644
--- a/Makefile
+++ b/Makefile
@@ -39,19 +39,22 @@ CFLAGS += -fPIC -shared -Wall
CC ?= "gcc"
objs += antispam-plugin.o $(BACKEND).o
-ALL = antispam
+ALL = lib90_antispam_plugin.so
all: verify_config $(ALL)
%.o: %.c .config antispam-plugin.h
$(CC) -c $(CFLAGS) -o $@ $<
-antispam: $(objs)
- $(CC) $(CFLAGS) $(objs) -o $@.so $(LDFLAGS)
+%.so: $(objs)
+ $(CC) $(CFLAGS) $(objs) -o $@ $(LDFLAGS)
clean:
rm -f *.so *.o *~
+install: all
+ install -o root -g root -m 0660 lib90_antispam_plugin.so $(INSTALLDIR)/
+
verify_config:
@if [ ! -r .config ]; then \
echo -e "\nBuilding the plugin requires a configuration file"; \