1 # NB. libssh and libopenbsd-compat should be built with the same sanitizer opts.
3 FUZZ_FLAGS=-fsanitize=address,undefined -fsanitize-coverage=edge
6 CXXFLAGS=-O2 -g -Wall -Wextra -I ../../.. $(FUZZ_FLAGS)
7 LDFLAGS=-L ../../.. -L ../../../openbsd-compat -g $(FUZZ_FLAGS)
8 LIBS=-lssh -lopenbsd-compat -lcrypto $(FUZZ_LIBS)
10 all: pubkey_fuzz sig_fuzz
13 $(CXX) $(CXXFLAGS) -c $< -o $@
15 pubkey_fuzz: pubkey_fuzz.o
16 $(CXX) -o $@ pubkey_fuzz.o $(LDFLAGS) $(LIBS)
19 $(CXX) -o $@ sig_fuzz.o $(LDFLAGS) $(LIBS)
22 -rm -f *.o pubkey_fuzz sig_fuzz