aboutsummaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
authorJean-Philippe Aumasson <jeanphilippe.aumasson@gmail.com>2019-09-13 20:40:30 +0200
committerGitHub <noreply@github.com>2019-09-13 20:40:30 +0200
commit1512ba4576e6167196d8d14cad898e563af3f83b (patch)
tree341fa5f8d011756778a1932c0325b958ada0041f /makefile
parentMerge pull request #13 from altendky/use_UINTxx_C_macros (diff)
parentMake *c* and *d* rounds less intrusively configurable (diff)
downloadsiphash-1512ba4576e6167196d8d14cad898e563af3f83b.tar.gz
siphash-1512ba4576e6167196d8d14cad898e563af3f83b.tar.xz
Merge pull request #15 from altendky/makefile_rounds_parameters
Make *c* and *d* rounds less intrusively configurable
Diffstat (limited to 'makefile')
-rw-r--r--makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/makefile b/makefile
index 8cf194a..eebe3e9 100644
--- a/makefile
+++ b/makefile
@@ -3,6 +3,14 @@ CFLAGS=-Wall --std=c99
SRC=siphash.c halfsiphash.c test.c
BIN=test debug vectors
+ifneq ($(cROUNDS),)
+CFLAGS:=$(CFLAGS) -DcROUNDS=$(cROUNDS)
+endif
+
+ifneq ($(dROUNDS),)
+CFLAGS:=$(CFLAGS) -DdROUNDS=$(dROUNDS)
+endif
+
all: $(BIN)
test: $(SRC)