summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco d'Itri <md@linux.it>2018-01-08 02:50:53 +0100
committerMarco d'Itri <md@linux.it>2018-01-08 02:50:53 +0100
commitac1d4125de3a3c183314eb82ccc21658e13d975f (patch)
tree59398e2e6c23fd4ff3c05946570aba9f9ddad208
parent5d60bbe102b71c03b9a46eb0a7aada3532bd4481 (diff)
downloadwhois-ac1d4125de3a3c183314eb82ccc21658e13d975f.tar.gz
Makefile: fix the afl invocation
DEFS must be set in the environment or else will override even DEFS+=... statements in the Makefile.
-rw-r--r--Makefile9
1 files changed, 2 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index ac49788..608184d 100644
--- a/Makefile
+++ b/Makefile
@@ -107,13 +107,8 @@ servers_charset.h: servers_charset_list make_servers_charset.pl
##############################################################################
afl:
- $(MAKE) whois \
- CC=afl-gcc AFL_HARDEN=1 \
- HAVE_ICONV=1 DEFS=-DAFL_MODE=1
-
-afl2:
- $(MAKE) whois \
- HAVE_ICONV=1 DEFS=-DAFL_MODE=1
+ -rm -f Makefile.depend
+ DEFS=-DAFL_MODE=1 AFL_HARDEN=1 $(MAKE) whois CC=afl-gcc HAVE_ICONV=1
afl-run:
nice afl-fuzz -i ../afl_in -o ../afl_out -- ./whois