mirror of
https://github.com/clearml/dropbear
synced 2025-02-07 05:17:28 +00:00
rename fuzzer -> fuzz-target, add list-fuzz-targets
--HG-- branch : fuzz
This commit is contained in:
parent
b9b308f2fe
commit
beaff53a79
15
Makefile.in
15
Makefile.in
@ -226,18 +226,23 @@ tidy:
|
|||||||
|
|
||||||
## Fuzzing targets
|
## Fuzzing targets
|
||||||
|
|
||||||
# exclude svr-main.o to avoid duplicate main
|
# list of fuzz targets
|
||||||
svrfuzzobjs=$(subst svr-main.o, ,$(dropbearobjs))
|
FUZZ_TARGETS=fuzzer-preauth
|
||||||
CLANG=clang
|
|
||||||
|
list-fuzz-targets:
|
||||||
|
@echo $(FUZZ_TARGETS)
|
||||||
|
|
||||||
# fuzzers that don't use libfuzzer, just a standalone harness that feeds inputs
|
# fuzzers that don't use libfuzzer, just a standalone harness that feeds inputs
|
||||||
fuzzstandalone: FUZZLIB=fuzz-harness.o
|
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
|
# build all the fuzzers. This will require fail to link unless built with
|
||||||
# make fuzzers LIBS=-lFuzzer.a
|
# make fuzzers LIBS=-lFuzzer.a
|
||||||
# or similar - the library provides main().
|
# or similar - the library provides main().
|
||||||
fuzzers: fuzzer-preauth
|
fuzz-targets: $(FUZZ_TARGETS)
|
||||||
|
|
||||||
fuzzer-preauth: fuzzer-preauth.o $(HEADERS) $(LIBTOM_DEPS) Makefile $(svrfuzzobjs)
|
fuzzer-preauth: fuzzer-preauth.o $(HEADERS) $(LIBTOM_DEPS) Makefile $(svrfuzzobjs)
|
||||||
$(CXX) $(CXXFLAGS) $@.o $(LDFLAGS) $(svrfuzzobjs) -o $@$(EXEEXT) $(LIBTOM_LIBS) $(LIBS) $(FUZZLIB) @CRYPTLIB@
|
$(CXX) $(CXXFLAGS) $@.o $(LDFLAGS) $(svrfuzzobjs) -o $@$(EXEEXT) $(LIBTOM_LIBS) $(LIBS) $(FUZZLIB) @CRYPTLIB@
|
||||||
|
Loading…
Reference in New Issue
Block a user