]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - crypto/openssh/regress/misc/fuzz-harness/Makefile
Upgrade to OpenSSH 7.6p1. This will be followed shortly by 7.7p1.
[FreeBSD/FreeBSD.git] / crypto / openssh / regress / misc / fuzz-harness / Makefile
1 # NB. libssh and libopenbsd-compat should be built with the same sanitizer opts.
2 CXX=clang++-3.9
3 FUZZ_FLAGS=-fsanitize=address,undefined -fsanitize-coverage=edge
4 FUZZ_LIBS=-lFuzzer
5
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)
9
10 all: pubkey_fuzz sig_fuzz
11
12 .cc.o:
13         $(CXX) $(CXXFLAGS) -c $< -o $@
14
15 pubkey_fuzz: pubkey_fuzz.o
16         $(CXX) -o $@ pubkey_fuzz.o $(LDFLAGS) $(LIBS)
17
18 sig_fuzz: sig_fuzz.o
19         $(CXX) -o $@ sig_fuzz.o $(LDFLAGS) $(LIBS)
20
21 clean:
22         -rm -f *.o pubkey_fuzz sig_fuzz