aboutsummaryrefslogtreecommitdiff
path: root/tests/fuzz/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'tests/fuzz/Makefile')
-rw-r--r--tests/fuzz/Makefile21
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)