summaryrefslogtreecommitdiffhomepage
path: root/Makefile.in
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2017-05-14 00:00:21 +0800
committerMatt Johnston <matt@ucc.asn.au>2017-05-14 00:00:21 +0800
commitbeaff53a79a98317650c47fd821be1075e4369fe (patch)
treee9c91100ab2f20843422353d798a3da98574700a /Makefile.in
parentb9b308f2fee82a488b58ce33099abdbb9e44c34a (diff)
rename fuzzer -> fuzz-target, add list-fuzz-targets
--HG-- branch : fuzz
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in15
1 files changed, 10 insertions, 5 deletions
diff --git a/Makefile.in b/Makefile.in
index 25e0293..e324142 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -226,18 +226,23 @@ tidy:
## 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) $@.o $(LDFLAGS) $(svrfuzzobjs) -o $@$(EXEEXT) $(LIBTOM_LIBS) $(LIBS) $(FUZZLIB) @CRYPTLIB@