Write stubs for the plugins

Make them compile.
This commit is contained in:
2014-09-11 08:10:33 +02:00
parent 241bc64a11
commit a133946688
8 changed files with 130 additions and 35 deletions

View File

@@ -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