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:
2014-07-09 01:54:50 +02:00
parent 165a19da21
commit 705c0e943e
5 changed files with 2654 additions and 1609 deletions

View File

@@ -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)