summaryrefslogtreecommitdiff
path: root/src/GNUmakefile
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2014-11-15 12:34:09 +0100
committerAndreas Baumann <mail@andreasbaumann.cc>2014-11-15 12:34:09 +0100
commit160aa748295f1846d6d599d7145cd5d7bdd82f5f (patch)
tree694c4fbfd56ef6852370eec42280b3052a46dd0b /src/GNUmakefile
parent75df5abae42888bd5bf01fc4a8bd1215413cab67 (diff)
downloadbiruda-160aa748295f1846d6d599d7145cd5d7bdd82f5f.tar.gz
biruda-160aa748295f1846d6d599d7145cd5d7bdd82f5f.tar.bz2
added status to cli mode
Diffstat (limited to 'src/GNUmakefile')
-rw-r--r--src/GNUmakefile11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/GNUmakefile b/src/GNUmakefile
index ceb26f3..5b99579 100644
--- a/src/GNUmakefile
+++ b/src/GNUmakefile
@@ -2,25 +2,26 @@
all: biruda
-CFLAGS = -g -std=c99 -Wall -pedantic -D_XOPEN_SOURCE=600
-CFLAGS += -I/usr/local/include
+CFLAGS = -g -O0 -std=c99 -Wall -pedantic -D_XOPEN_SOURCE=600 -D_DEFAULT_SOURCE
+CFLAGS += -I/usr/local/include -I3rdParty/linenoise -I3rdParty/http_tiny
LDFLAGS = -L/usr/local/lib
LIBS = -lconfuse -lpthread -lnanomsg -ljson-c -lmicrohttpd
%.o : %.c
$(CC) $(CFLAGS) -c -o $@ $<
-biruda: biruda.o biruda_cmdline.o master.o coordinator.o worker.o system.o webserver.o linenoise.o
+biruda: biruda.o biruda_cmdline.o master.o coordinator.o worker.o system.o webserver.o 3rdParty/linenoise/linenoise.o 3rdParty/http_tiny/http_lib.o
$(CC) -o $@ $(LDFLAGS) $^ $(LIBS)
biruda_cmdline.o: biruda_cmdline.c
-biruda.o: biruda.c biruda_cmdline.h master.h coordinator.h worker.h port.h system.h webserver.h
+biruda.o: biruda.c biruda_cmdline.h master.h coordinator.h worker.h port.h system.h webserver.h 3rdParty/linenoise/linenoise.h
master.o: master.c master.h port.h
coordinator.o: coordinator.c coordinator.h port.h system.h
worker.o: worker.c worker.h port.h
system.o: system.c system.h
webserver.o: webserver.c webserver.h
-linenoise.o: linenoise.c linenoise.h
+3rdParty/linenoise/linenoise.o: 3rdParty/linenoise/linenoise.c 3rdParty/linenoise/linenoise.h
+3rdParty/http_tiny/http_lib.o: 3rdParty/http_tiny/http_lib.c 3rdParty/http_tiny/http_lib.h
biruda_cmdline.c: biruda.ggo
gengetopt -F biruda_cmdline --unamed-opts --conf-parser --include-getopt -i $<