summaryrefslogtreecommitdiff
path: root/test/common.mk
diff options
context:
space:
mode:
Diffstat (limited to 'test/common.mk')
-rw-r--r--test/common.mk10
1 files changed, 7 insertions, 3 deletions
diff --git a/test/common.mk b/test/common.mk
index 4d182d2..e018a9d 100644
--- a/test/common.mk
+++ b/test/common.mk
@@ -1,4 +1,4 @@
-# use "make VERBOSE=1" to have full commands printed out.
+# Use "make VERBOSE=1" to have full commands printed out.
VERBOSE = 0
ifeq ($(VERBOSE),1)
Q =
@@ -7,6 +7,10 @@ Q = @
endif
+# Use "make IMPLEMENTATION=..." to compile against other versions.
+IMPLEMENTATION = ref
+
+
tests = $(basename $(wildcard test-*.c))
traces = $(basename $(wildcard traces-*.c))
@@ -14,8 +18,8 @@ traces = $(basename $(wildcard traces-*.c))
test_dir = $(dir $(lastword $(MAKEFILE_LIST)))
root_dir = $(test_dir)..
results_dir = $(root_dir)/results/$(mode)-$(keylen)
-src_dir = $(root_dir)/src
-variant_dir = $(src_dir)/$(mode)-$(keylen)
+src_dir = $(root_dir)/src/$(IMPLEMENTATION)
+variant_dir = $(root_dir)/src/$(mode)-$(keylen)
nist_flags = -std=c99 -Wall -Wextra -Wshadow -fsanitize=address,undefined -O2