xK/Makefile
Přemysl Janouch 126c07b70a kike: generate replies from a single text file
It became a bit difficult to maintain two separate lists.  Besides, the inverse
generation of a message catalog from source code was a bit strange.
2014-08-10 00:47:26 +02:00

28 lines
744 B
Makefile

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
.PHONY: all clean
.SUFFIXES:
targets = zyklonb kike kike.msg
all: $(targets)
clean:
rm -f $(targets) kike-replies.c
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 < $< > $@