aboutsummaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
authorJP Aumasson <jeanphilippe.aumasson@gmail.com>2016-12-17 14:14:22 +0100
committerJP Aumasson <jeanphilippe.aumasson@gmail.com>2016-12-17 14:14:22 +0100
commit93ca99dcfa6a32b1b617e9a5c3c044685254ce8e (patch)
treeb406909b4aa82b4840999fb6ffa755b75394c3a2 /makefile
parentchaskey constants (diff)
downloadsiphash-93ca99dcfa6a32b1b617e9a5c3c044685254ce8e.tar.gz
siphash-93ca99dcfa6a32b1b617e9a5c3c044685254ce8e.tar.xz
autogen vectors, tweaked hsiphash
Diffstat (limited to 'makefile')
-rw-r--r--makefile11
1 files changed, 9 insertions, 2 deletions
diff --git a/makefile b/makefile
index 7847e2a..8cf194a 100644
--- a/makefile
+++ b/makefile
@@ -1,7 +1,7 @@
CC=gcc
-CFLAGS=-Wall
+CFLAGS=-Wall --std=c99
SRC=siphash.c halfsiphash.c test.c
-BIN=test debug
+BIN=test debug vectors
all: $(BIN)
@@ -11,8 +11,15 @@ test: $(SRC)
debug: $(SRC)
$(CC) $(CFLAGS) $^ -o $@ -DDEBUG
+vectors: $(SRC)
+ $(CC) $(CFLAGS) $^ -o $@ -DGETVECTORS
+
+
clean:
rm -f *.o $(BIN)
+format:
+ clang-format -style="{BasedOnStyle: llvm, IndentWidth: 4}" \
+ -i *.c *.h
dist: clean
cd ..; \