summaryrefslogtreecommitdiff
path: root/src/GNUmakefile
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2014-11-15 20:56:40 +0100
committerAndreas Baumann <mail@andreasbaumann.cc>2014-11-15 20:56:40 +0100
commit9594857ea2b95675fc8c393aa4da21baa3d0f7f8 (patch)
tree20322af94fb9d25119b84500601d423360853b84 /src/GNUmakefile
parent8a008f55fa16b4388e49a21301bf84c7e4a2b2f7 (diff)
downloadbiruda-9594857ea2b95675fc8c393aa4da21baa3d0f7f8.tar.gz
biruda-9594857ea2b95675fc8c393aa4da21baa3d0f7f8.tar.bz2
..
Diffstat (limited to 'src/GNUmakefile')
-rw-r--r--src/GNUmakefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/GNUmakefile b/src/GNUmakefile
index 5b99579..3e84523 100644
--- a/src/GNUmakefile
+++ b/src/GNUmakefile
@@ -1,9 +1,10 @@
.PHONY: all clean install
-all: biruda
+all: biruda workertest
CFLAGS = -g -O0 -std=c99 -Wall -pedantic -D_XOPEN_SOURCE=600 -D_DEFAULT_SOURCE
CFLAGS += -I/usr/local/include -I3rdParty/linenoise -I3rdParty/http_tiny
+CFLAGS += `pkg-config --cflags glib-2.0`
LDFLAGS = -L/usr/local/lib
LIBS = -lconfuse -lpthread -lnanomsg -ljson-c -lmicrohttpd
@@ -29,10 +30,14 @@ biruda_cmdline.c: biruda.ggo
biruda_cmdline.h: biruda.ggo
gengetopt -F biruda_cmdline --unamed-opts --conf-parser --include-getopt -i $<
+workertest: workertest.o
+workertest.o: workertest.c
+
clean:
@-rm *.o
@-rm biruda
@-rm biruda_cmdline.[ch]
+ @-rm workertest
# default values
DESTDIR ?=