diff options
author | Paul Duncan <pabs@pablotron.org> | 2024-05-09 01:50:14 -0400 |
---|---|---|
committer | Paul Duncan <pabs@pablotron.org> | 2024-05-09 01:50:14 -0400 |
commit | 061dc7ec46e7e2dba7b8c3ef6f09d7d383ad692c (patch) | |
tree | b0edd14c90026ad4df158538a3b6b7b2e9df41ee /examples/02-kmac128/Makefile | |
parent | 8363e3c6a128f02a4b8fa2edf877c0fe26629a46 (diff) | |
download | sha3-6aed5add3e5f30f7e77473c7bf3eba13ad9bbd22.tar.bz2 sha3-6aed5add3e5f30f7e77473c7bf3eba13ad9bbd22.zip |
examples/*/Makefile, tests/*/Makefile: add BACKEND support, mark clean target as phonyv0.8
Diffstat (limited to 'examples/02-kmac128/Makefile')
-rw-r--r-- | examples/02-kmac128/Makefile | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/examples/02-kmac128/Makefile b/examples/02-kmac128/Makefile index ae267f9..266dcba 100644 --- a/examples/02-kmac128/Makefile +++ b/examples/02-kmac128/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=./kmac128-example OBJS=sha3.o main.o -.PHONY=all +.PHONY=all clean all: $(APP) |