diff Makefile.in @ 1352:66c1cfd5e100 fuzz

rename fuzzer -> fuzz-target, add list-fuzz-targets
author Matt Johnston <matt@ucc.asn.au>
date Sun, 14 May 2017 00:00:21 +0800
parents 68e0e396af80
children 3fdd8c5a0195
line wrap: on
line diff
--- a/Makefile.in	Sat May 13 23:46:01 2017 +0800
+++ b/Makefile.in	Sun May 14 00:00:21 2017 +0800
@@ -226,18 +226,23 @@
 
 ## Fuzzing targets
 
-# exclude svr-main.o to avoid duplicate main
-svrfuzzobjs=$(subst svr-main.o, ,$(dropbearobjs))
-CLANG=clang
+# list of fuzz targets
+FUZZ_TARGETS=fuzzer-preauth
+
+list-fuzz-targets:
+	@echo $(FUZZ_TARGETS)
 
 # fuzzers that don't use libfuzzer, just a standalone harness that feeds inputs
 fuzzstandalone: FUZZLIB=fuzz-harness.o
-fuzzstandalone: fuzz-harness.o fuzzers
+fuzzstandalone: fuzz-harness.o fuzz-targets
+
+# exclude svr-main.o to avoid duplicate main
+svrfuzzobjs=$(subst svr-main.o, ,$(dropbearobjs))
 
 # build all the fuzzers. This will require fail to link unless built with
 # make fuzzers LIBS=-lFuzzer.a 
 # or similar - the library provides main().
-fuzzers: fuzzer-preauth
+fuzz-targets: $(FUZZ_TARGETS)
 
 fuzzer-preauth: fuzzer-preauth.o $(HEADERS) $(LIBTOM_DEPS) Makefile $(svrfuzzobjs)
 	$(CXX) $(CXXFLAGS) [email protected] $(LDFLAGS) $(svrfuzzobjs) -o [email protected]$(EXEEXT) $(LIBTOM_LIBS) $(LIBS) $(FUZZLIB) @[email protected]