From 75b6d96e139c65ba457120d04767a3fc1b948372 Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Sun, 17 Sep 2023 03:31:23 -0400 Subject: add tests/fuzz --- tests/fuzz/Makefile | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 tests/fuzz/Makefile (limited to 'tests/fuzz/Makefile') diff --git a/tests/fuzz/Makefile b/tests/fuzz/Makefile new file mode 100644 index 0000000..9c305a8 --- /dev/null +++ b/tests/fuzz/Makefile @@ -0,0 +1,21 @@ +CFLAGS=-g -fsanitize=address,fuzzer -W -Wall -Wextra -Werror -pedantic -std=c11 +APP=./fuzz-shake128 +OBJS=sha3.o fuzz.o +CC=clang + +.PHONY=all clean fuzz + +all: $(APP) + +# build sample application +$(APP): $(OBJS) + $(CC) -o $(APP) $(CFLAGS) $(OBJS) + +%.o: %.c + $(CC) -c $(CFLAGS) $< + +fuzz: $(APP) + $(APP) + +clean: + $(RM) -f $(APP) $(OBJS) -- cgit v1.2.3