aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 59be4bfb6bca41c15d417b8746165422216759d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
SHELL = /bin/sh
CC = clang
# -Wunused-function is pretty annoying here, as everything is static and not
# all parts of common.c are used in all the executables
CFLAGS = -ggdb -Wall -Wextra -std=c99 -Wno-unused-function
# -lpthread is only there for debugging (gdb & errno)
LDFLAGS = `pkg-config --libs libssl` -lpthread

.PHONY: all clean

targets = zyklonb kike kike.msg

all: $(targets)

clean:
	rm -f $(targets)

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)
kike.msg: src/kike.c
	$(SHELL) kike-extract-messages.sh < $< > $@