aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/cavp-tests/Makefile7
-rw-r--r--tests/fuzz/Makefile5
-rw-r--r--tests/permute/Makefile2
3 files changed, 10 insertions, 4 deletions
diff --git a/tests/cavp-tests/Makefile b/tests/cavp-tests/Makefile
index 7d5ac47..2de46f8 100644
--- a/tests/cavp-tests/Makefile
+++ b/tests/cavp-tests/Makefile
@@ -1,8 +1,11 @@
-CFLAGS=-W -Wall -Wextra -Werror -pedantic -std=c11 -O3 -march=native -mtune=native
+# backend (0 to auto-detect)
+BACKEND ?= 0
+
+CFLAGS=-W -Wall -Wextra -Werror -pedantic -std=c11 -O3 -march=native -mtune=native -DBACKEND=$(BACKEND)
APP=./cavp-tests
OBJS=sha3.o main.o
-.PHONY=all
+.PHONY=all clean
all: $(APP)
diff --git a/tests/fuzz/Makefile b/tests/fuzz/Makefile
index 9c305a8..0558ac9 100644
--- a/tests/fuzz/Makefile
+++ b/tests/fuzz/Makefile
@@ -1,4 +1,7 @@
-CFLAGS=-g -fsanitize=address,fuzzer -W -Wall -Wextra -Werror -pedantic -std=c11
+# backend (0 to auto-detect)
+BACKEND ?= 0
+
+CFLAGS=-g -fsanitize=address,fuzzer -W -Wall -Wextra -Werror -pedantic -std=c11 -DBACKEND=$(BACKEND)
APP=./fuzz-shake128
OBJS=sha3.o fuzz.o
CC=clang
diff --git a/tests/permute/Makefile b/tests/permute/Makefile
index 142014c..5a83187 100644
--- a/tests/permute/Makefile
+++ b/tests/permute/Makefile
@@ -2,7 +2,7 @@ CFLAGS=-W -Wall -Wextra -Werror -pedantic -std=c11 -O3 -march=native -mtune=nati
APP=./test-permute
OBJS=permute.o
-.PHONY=test all
+.PHONY=test all clean
all: $(APP)