2014-06-14 20:26:28 +02:00
|
|
|
SHELL = /bin/sh
|
|
|
|
CC = clang
|
|
|
|
CFLAGS = -ggdb -Wall -Wextra -std=c99
|
2014-07-09 01:54:50 +02:00
|
|
|
# -lpthread is only there for debugging (gdb & errno)
|
|
|
|
LDFLAGS = `pkg-config --libs libssl` -lpthread
|
2014-06-14 20:26:28 +02:00
|
|
|
|
|
|
|
.PHONY: all clean
|
|
|
|
|
2014-07-09 01:54:50 +02:00
|
|
|
targets = zyklonb kike
|
2014-06-14 20:26:28 +02:00
|
|
|
|
|
|
|
all: $(targets)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f $(targets)
|
|
|
|
|
2014-07-09 01:54:50 +02:00
|
|
|
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)
|
2014-06-14 20:26:28 +02:00
|
|
|
|