aboutsummaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
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 ..; \