diff options
author | Přemysl Janouch <p.janouch@gmail.com> | 2014-09-07 17:28:10 +0200 |
---|---|---|
committer | Přemysl Janouch <p.janouch@gmail.com> | 2014-09-08 21:40:01 +0200 |
commit | b418bfe22cb7ba9091f065d8697ef8bcfcead203 (patch) | |
tree | 20541f58b957cbb7ae25e4baef81cbbce0b92f68 /Makefile | |
download | ponymap-b418bfe22cb7ba9091f065d8697ef8bcfcead203.tar.gz ponymap-b418bfe22cb7ba9091f065d8697ef8bcfcead203.tar.xz ponymap-b418bfe22cb7ba9091f065d8697ef8bcfcead203.zip |
Initial commit
Nothing's working yet, only some supporting code has been put in place.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..87a593e --- /dev/null +++ b/Makefile @@ -0,0 +1,21 @@ +SHELL = /bin/sh +CC = clang +# -Wunused-function is pretty annoying here, as everything is static +CFLAGS = -std=c99 -Wall -Wextra -Wno-unused-function -ggdb +# -lpthread is only there for debugging (gdb & errno) +# -lrt is only for glibc < 2.17 +LDFLAGS = `pkg-config --libs libssl` -lpthread -lrt -ldl + +.PHONY: all clean +.SUFFIXES: + +targets = ponymap + +all: $(targets) + +clean: + rm -f $(targets) + +ponymap: ponymap.c utils.c siphash.c + $(CC) ponymap.c siphash.c -o $@ $(CFLAGS) $(LDFLAGS) + |