aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2014-07-09 01:54:50 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2014-07-12 21:09:50 +0200
commit705c0e943eb157ba7d6de7c5670c877188f754cc (patch)
tree2bc61b536f2cd28d2ea8d6cae3c21554ed3974e4 /Makefile
parent165a19da21d057606926730f432bf298ada2751e (diff)
downloadxK-705c0e943eb157ba7d6de7c5670c877188f754cc.tar.gz
xK-705c0e943eb157ba7d6de7c5670c877188f754cc.tar.xz
xK-705c0e943eb157ba7d6de7c5670c877188f754cc.zip
WIP: add a stub IRC daemon named `kike'
As it is going to share a great lot of functionality with ZyklonB, I have decided to extract the common parts into `common.c' and make the two subprojects include this file. The Single Compile Unit concept has proven valuable (sub-second compile times, dead code warnings, almost no need for function declarations, whole-program optimizations), and the sources aren't that long so far anyway. I am probably going to add CMake support later but so far it's not a priority. This project is meant to be portable and freely relocatable (ie. no hardcoded paths if I can avoid it).
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 7 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index f47959a..db6d657 100644
--- a/Makefile
+++ b/Makefile
@@ -1,17 +1,20 @@
SHELL = /bin/sh
CC = clang
CFLAGS = -ggdb -Wall -Wextra -std=c99
-LDFLAGS = `pkg-config --libs libssl`
+# -lpthread is only there for debugging (gdb & errno)
+LDFLAGS = `pkg-config --libs libssl` -lpthread
.PHONY: all clean
-targets = zyklonb
+targets = zyklonb kike
all: $(targets)
clean:
rm -f $(targets)
-zyklonb: src/zyklonb.c src/siphash.c
- $(CC) $^ -o $@ $(CFLAGS) $(LDFLAGS)
+zyklonb: src/zyklonb.c src/common.c src/siphash.c
+ $(CC) src/zyklonb.c src/siphash.c -o $@ $(CFLAGS) $(LDFLAGS)
+kike: src/kike.c src/common.c src/siphash.c
+ $(CC) src/kike.c src/siphash.c -o $@ $(CFLAGS) $(LDFLAGS)