summaryrefslogtreecommitdiff
path: root/src/GNUmakefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/GNUmakefile')
-rw-r--r--src/GNUmakefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/GNUmakefile b/src/GNUmakefile
index aefb70c..bec27f0 100644
--- a/src/GNUmakefile
+++ b/src/GNUmakefile
@@ -1,6 +1,6 @@
.PHONY: all clean install test
-all: 3rdParty/xxd/xxd biruda workertest
+all: 3rdParty/xxd/xxd biruda birudaenv workertest
# gcc/clang
CFLAGS = -g -O0 -std=c99 -Wall -pedantic -D_XOPEN_SOURCE=600 -D_DEFAULT_SOURCE
@@ -25,6 +25,9 @@ LIBS += `pkg-config --libs-only-l glib-2.0`
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 cli.o
$(CC) -o $@ $(LDFLAGS) $^ $(LIBS)
+birudaenv: birudaenv.c system.c
+ $(CC) -static -o $@ $^
+
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_conf.c
master.o: master.c master.h port.h
@@ -53,7 +56,7 @@ biruda_conf.c: biruda.conf 3rdParty/xxd/xxd
clean:
@-rm *.o
- @-rm biruda
+ @-rm biruda birudaenv
@-rm biruda_cmdline.[ch]
@-rm workertest
@-rm 3rdParty/http_tiny/*.o