summaryrefslogtreecommitdiff
path: root/src/GNUmakefile
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2015-04-09 17:51:39 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2015-04-09 17:51:39 +0200
commit5a5c7bc43d55b2cd193a1afa9937ae1efd51fc91 (patch)
treeaa155f55dba144a0ff2e3b8e20128bebfddec88a /src/GNUmakefile
parent9a79a9dfc1a9e0443915813cbfc5db38e151dbd3 (diff)
downloadbiruda-5a5c7bc43d55b2cd193a1afa9937ae1efd51fc91.tar.gz
biruda-5a5c7bc43d55b2cd193a1afa9937ae1efd51fc91.tar.bz2
added local xxd and configuration generation in biruda binary
Diffstat (limited to 'src/GNUmakefile')
-rw-r--r--src/GNUmakefile12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/GNUmakefile b/src/GNUmakefile
index f6af413..2f32b49 100644
--- a/src/GNUmakefile
+++ b/src/GNUmakefile
@@ -1,6 +1,6 @@
.PHONY: all clean install
-all: biruda workertest
+all: 3rdParty/xxd/xxd biruda workertest
# gcc/clang
CFLAGS = -g -O0 -std=c99 -Wall -pedantic -D_XOPEN_SOURCE=600 -D_DEFAULT_SOURCE
@@ -20,7 +20,7 @@ biruda: biruda.o biruda_cmdline.o master.o coordinator.o worker.o system.o webse
$(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 3rdParty/linenoise/linenoise.h cli.h
+biruda.o: biruda.c biruda_cmdline.h master.h coordinator.h worker.h port.h system.h webserver.h 3rdParty/linenoise/linenoise.h cli.h biruda_conf.c
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
@@ -39,6 +39,12 @@ biruda_cmdline.h: biruda.ggo
workertest: workertest.o
workertest.o: workertest.c
+3rdParty/xxd/xxd: 3rdParty/xxd/xxd.c
+ $(CC) -o $@ $^
+
+biruda_conf.c: biruda.conf 3rdParty/xxd/xxd
+ 3rdParty/xxd/xxd -i biruda.conf > biruda_conf.c
+
clean:
@-rm *.o
@-rm biruda
@@ -46,6 +52,8 @@ clean:
@-rm workertest
@-rm 3rdParty/http_tiny/*.o
@-rm 3rdParty/linenoise/*.o
+ @-rm 3rdParty/xxd/xxd
+ @-rm biruda_conf.c
# default values
DESTDIR ?=