From 705c0e943eb157ba7d6de7c5670c877188f754cc Mon Sep 17 00:00:00 2001
From: Přemysl Janouch
Date: Wed, 9 Jul 2014 01:54:50 +0200
Subject: 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).
---
Makefile | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
(limited to 'Makefile')
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)
--
cgit v1.2.3-70-g09d2