about summary refs log tree commit diff
path: root/utils
diff options
context:
space:
mode:
authorMaciej Domanski <maciej.domanski@trailofbits.com>2022-12-28 10:34:56 +0100
committerMaciej Domanski <maciej.domanski@trailofbits.com>2022-12-28 10:34:56 +0100
commit4ff37da70923196f6986d64eafdda82590b92207 (patch)
tree0e4602aebd9e8fd2eb71dfc1e59085d0541926fd /utils
parent86ec1b9d71d1d2679f85676c65947324779016b3 (diff)
downloadafl++-4ff37da70923196f6986d64eafdda82590b92207.tar.gz
makefile update
Diffstat (limited to 'utils')
-rw-r--r--utils/argv_fuzzing/Makefile16
1 files changed, 10 insertions, 6 deletions
diff --git a/utils/argv_fuzzing/Makefile b/utils/argv_fuzzing/Makefile
index ba811de6..b6630175 100644
--- a/utils/argv_fuzzing/Makefile
+++ b/utils/argv_fuzzing/Makefile
@@ -13,11 +13,20 @@
 
 .PHONY: all install clean argv_fuzz_persistent_demo argv_fuzz_demo
 
+CC ?= afl-clang-fast
+CFLAGS ?= -fsanitize=address
+
+argv_fuzz_persistent_demo: argv_fuzz_persistent_demo.c
+	$(CC) $(CFLAGS) -o $@ $^
+
+argv_fuzz_demo: argv_fuzz_demo.c
+	$(CC) $(CFLAGS) -o $@ $^
+
 PREFIX     ?= /usr/local
 BIN_PATH    = $(PREFIX)/bin
 HELPER_PATH = $(PREFIX)/lib/afl
 
-CFLAGS = -fPIC -Wall -Wextra
+CFLAGS += -fPIC -Wall -Wextra
 LDFLAGS = -shared
 
 UNAME_SAYS_LINUX=$(shell uname | grep -E '^Linux|^GNU' >/dev/null; echo $$?)
@@ -57,8 +66,3 @@ install: argvfuzz32.so argvfuzz64.so
 clean:
 	rm -f argvfuzz32.so argvfuzz64.so argv_fuzz_demo argv_fuzz_persistent_demo
 
-argv_fuzz_persistent_demo: argv_fuzz_persistent_demo.c
-	$(CC) $(CFLAGS) -o $@ $^
-
-argv_fuzz_demo: argv_fuzz_demo.c
-	$(CC) $(CFLAGS) -o $@ $^
\ No newline at end of file