Mercurial > dropbear
comparison 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 |
comparison
equal
deleted
inserted
replaced
1351:68e0e396af80 | 1352:66c1cfd5e100 |
---|---|
224 tidy: | 224 tidy: |
225 -rm -f *~ *.gcov */*~ | 225 -rm -f *~ *.gcov */*~ |
226 | 226 |
227 ## Fuzzing targets | 227 ## Fuzzing targets |
228 | 228 |
229 # list of fuzz targets | |
230 FUZZ_TARGETS=fuzzer-preauth | |
231 | |
232 list-fuzz-targets: | |
233 @echo $(FUZZ_TARGETS) | |
234 | |
235 # fuzzers that don't use libfuzzer, just a standalone harness that feeds inputs | |
236 fuzzstandalone: FUZZLIB=fuzz-harness.o | |
237 fuzzstandalone: fuzz-harness.o fuzz-targets | |
238 | |
229 # exclude svr-main.o to avoid duplicate main | 239 # exclude svr-main.o to avoid duplicate main |
230 svrfuzzobjs=$(subst svr-main.o, ,$(dropbearobjs)) | 240 svrfuzzobjs=$(subst svr-main.o, ,$(dropbearobjs)) |
231 CLANG=clang | |
232 | |
233 # fuzzers that don't use libfuzzer, just a standalone harness that feeds inputs | |
234 fuzzstandalone: FUZZLIB=fuzz-harness.o | |
235 fuzzstandalone: fuzz-harness.o fuzzers | |
236 | 241 |
237 # build all the fuzzers. This will require fail to link unless built with | 242 # build all the fuzzers. This will require fail to link unless built with |
238 # make fuzzers LIBS=-lFuzzer.a | 243 # make fuzzers LIBS=-lFuzzer.a |
239 # or similar - the library provides main(). | 244 # or similar - the library provides main(). |
240 fuzzers: fuzzer-preauth | 245 fuzz-targets: $(FUZZ_TARGETS) |
241 | 246 |
242 fuzzer-preauth: fuzzer-preauth.o $(HEADERS) $(LIBTOM_DEPS) Makefile $(svrfuzzobjs) | 247 fuzzer-preauth: fuzzer-preauth.o $(HEADERS) $(LIBTOM_DEPS) Makefile $(svrfuzzobjs) |
243 $(CXX) $(CXXFLAGS) [email protected] $(LDFLAGS) $(svrfuzzobjs) -o $@$(EXEEXT) $(LIBTOM_LIBS) $(LIBS) $(FUZZLIB) @CRYPTLIB@ | 248 $(CXX) $(CXXFLAGS) [email protected] $(LDFLAGS) $(svrfuzzobjs) -o $@$(EXEEXT) $(LIBTOM_LIBS) $(LIBS) $(FUZZLIB) @CRYPTLIB@ |
244 | 249 |
245 # run this to update hardcoded hostkeys for for fuzzing. | 250 # run this to update hardcoded hostkeys for for fuzzing. |