annotate Makefile @ 26:c87782d4bd46

Make robust for latest.zip being missing Handle newly added targets
author Matt Johnston <matt@ucc.asn.au>
date Sat, 14 Dec 2024 20:27:39 +0800
parents 6b857c4abe66
children 6d889f88a97d
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
20
6b857c4abe66 Add new fuzzers to the list
Matt Johnston <matt@ucc.asn.au>
parents: 3
diff changeset
1 FUZZ_TARGETS=fuzzer-preauth fuzzer-preauth_nomaths fuzzer-pubkey fuzzer-verify \
6b857c4abe66 Add new fuzzers to the list
Matt Johnston <matt@ucc.asn.au>
parents: 3
diff changeset
2 fuzzer-client fuzzer-client_nomaths fuzzer-kexcurve25519 fuzzer-kexdh fuzzer-kexecdh fuzzer-postauth_nomaths
0
ec5e2b121e57 Dropbear fuzz corpus
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
3
ec5e2b121e57 Dropbear fuzz corpus
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
4 CORPUSES = $(addsuffix _seed_corpus.zip, $(FUZZ_TARGETS))
ec5e2b121e57 Dropbear fuzz corpus
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
5
ec5e2b121e57 Dropbear fuzz corpus
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
6 all: $(CORPUSES)
ec5e2b121e57 Dropbear fuzz corpus
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
7
ec5e2b121e57 Dropbear fuzz corpus
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
8 %_seed_corpus.zip: %/* Makefile
ec5e2b121e57 Dropbear fuzz corpus
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
9 -rm $@
ec5e2b121e57 Dropbear fuzz corpus
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
10 cd $*; zip ../$@ *
ec5e2b121e57 Dropbear fuzz corpus
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
11
ec5e2b121e57 Dropbear fuzz corpus
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
12 list-fuzz-targets:
ec5e2b121e57 Dropbear fuzz corpus
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
13 @echo $(FUZZ_TARGETS)
ec5e2b121e57 Dropbear fuzz corpus
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
14