xK/Makefile

28 lines
744 B
Makefile
Raw Normal View History

2014-06-14 20:26:28 +02:00
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 = -std=c99 -Wall -Wextra -Wno-unused-function \
-ggdb -fsanitize=address,undefined
# -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
.SUFFIXES:
2014-06-14 20:26:28 +02:00
targets = zyklonb kike kike.msg
2014-06-14 20:26:28 +02:00
all: $(targets)
clean:
rm -f $(targets) kike-replies.c
2014-06-14 20:26:28 +02:00
zyklonb: zyklonb.c common.c siphash.c
$(CC) zyklonb.c siphash.c -o $@ $(CFLAGS) $(LDFLAGS)
kike: kike.c common.c siphash.c kike-replies.c
$(CC) kike.c siphash.c -o $@ $(CFLAGS) $(LDFLAGS)
kike-replies.c kike.msg: kike-replies
$(SHELL) kike-gen-replies.sh < $< > $@
2014-06-14 20:26:28 +02:00