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).
This commit is contained in:
11
Makefile
11
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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user