From 061dc7ec46e7e2dba7b8c3ef6f09d7d383ad692c Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Thu, 9 May 2024 01:50:14 -0400 Subject: examples/*/Makefile, tests/*/Makefile: add BACKEND support, mark clean target as phony --- examples/04-turboshake128/Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'examples/04-turboshake128') diff --git a/examples/04-turboshake128/Makefile b/examples/04-turboshake128/Makefile index 020ca7c..4706e0e 100644 --- a/examples/04-turboshake128/Makefile +++ b/examples/04-turboshake128/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=./turbohash128-example OBJS=sha3.o main.o -.PHONY=all +.PHONY=all clean all: $(APP) -- cgit v1.2.3