diff options
author | Paul Duncan <pabs@pablotron.org> | 2023-09-17 03:31:23 -0400 |
---|---|---|
committer | Paul Duncan <pabs@pablotron.org> | 2023-09-17 03:31:23 -0400 |
commit | 75b6d96e139c65ba457120d04767a3fc1b948372 (patch) | |
tree | 3b296da56495cad9bfe20f58f9293185200b8014 /tests/fuzz/Makefile | |
parent | 9dc538b3230c17671da35c8346a1f471aa6118f4 (diff) | |
download | sha3-75b6d96e139c65ba457120d04767a3fc1b948372.tar.bz2 sha3-75b6d96e139c65ba457120d04767a3fc1b948372.zip |
add tests/fuzz
Diffstat (limited to 'tests/fuzz/Makefile')
-rw-r--r-- | tests/fuzz/Makefile | 21 |
1 files changed, 21 insertions, 0 deletions
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) |