aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2014-09-11 08:10:33 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2014-09-11 08:10:33 +0200
commita1339466880b1dcaff2d2419f7d5aa5bd09fa1de (patch)
treef63a46ed2d7cb0c7e5a91c8b8167365fd4eda0e4 /Makefile
parent241bc64a11da5ddfa60b2242f39c944abaf02cb5 (diff)
downloadponymap-a1339466880b1dcaff2d2419f7d5aa5bd09fa1de.tar.gz
ponymap-a1339466880b1dcaff2d2419f7d5aa5bd09fa1de.tar.xz
ponymap-a1339466880b1dcaff2d2419f7d5aa5bd09fa1de.zip
Write stubs for the plugins
Make them compile.
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