summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2014-09-21 00:58:19 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2014-09-21 01:02:16 +0200
commit47aaedd26a5ebabb3f009ca0c24c130c46558352 (patch)
tree88cfb53cd79b1538759c81c9e6e83207de1f6c1b /Makefile
parent2b74a188332f152e8952725812e086968a41e925 (diff)
downloadponymap-47aaedd26a5ebabb3f009ca0c24c130c46558352.tar.gz
ponymap-47aaedd26a5ebabb3f009ca0c24c130c46558352.tar.xz
ponymap-47aaedd26a5ebabb3f009ca0c24c130c46558352.zip
Implement the HTTP plugin
Ended up including Joyent's http-parser library.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index a07ad22..b13d239 100644
--- a/Makefile
+++ b/Makefile
@@ -5,6 +5,7 @@ CFLAGS = -std=c99 -Wall -Wextra -Wno-unused-function -ggdb
# -lpthread is only there for debugging (gdb & errno)
# -lrt is only for glibc < 2.17
LDFLAGS = `pkg-config --libs libssl jansson` -lpthread -lrt -ldl -lcurses
+LDFLAGS_PLUGIN = $(LDFLAGS) -shared -fPIC
.PHONY: all clean
.SUFFIXES:
@@ -23,4 +24,8 @@ ponymap.1: ponymap
help2man -No $@ ./$<
plugins/%.so: plugins/%.c utils.c plugin-api.h
- $(CC) $< -o $@ $(CFLAGS) $(LDFLAGS) -shared -fPIC
+ $(CC) $< -o $@ $(CFLAGS) $(LDFLAGS_PLUGIN)
+
+plugins/http.so: plugins/http.c utils.c plugin-api.h \
+ http-parser/http_parser.c http-parser/http_parser.h
+ $(CC) $< http-parser/http_parser.c -o $@ $(CFLAGS) $(LDFLAGS_PLUGIN)