aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 87a593e..8a75a99 100644
--- a/Makefile
+++ b/Makefile
@@ -9,13 +9,15 @@ LDFLAGS = `pkg-config --libs libssl` -lpthread -lrt -ldl
.PHONY: all clean
.SUFFIXES:
-targets = ponymap
+targets = ponymap plugins/http.so plugins/irc.so
all: $(targets)
clean:
rm -f $(targets)
-ponymap: ponymap.c utils.c siphash.c
+ponymap: ponymap.c utils.c plugin-api.h siphash.c
$(CC) ponymap.c siphash.c -o $@ $(CFLAGS) $(LDFLAGS)
+plugins/%.so: plugins/%.c utils.c plugin-api.h
+ $(CC) $< -o $@ $(CFLAGS) $(LDFLAGS) -shared -fPIC