1# $OpenBSD: Makefile,v 1.9 2020/12/25 10:50:08 tb Exp $ 2 3PROGS = client server 4CFLAGS += -DLIBRESSL_HAS_TLS1_3 5CPPFLAGS += 6LDFLAGS += 7LDADD += -lssl -lcrypto 8DPADD += ${LIBSSL} ${LIBCRYPTO} 9LD_LIBRARY_PATH = 10REGRESS_TARGETS = run-self-client-server 11.for p in ${PROGS} 12REGRESS_TARGETS += run-ldd-$p run-version-$p run-protocol-$p 13.endfor 14 15.for p in ${PROGS} 16 17run-ldd-$p: ldd-$p.out 18 # check that $p is linked with LibreSSL 19 grep -q /usr/lib/libcrypto.so ldd-$p.out 20 grep -q /usr/lib/libssl.so ldd-$p.out 21 # check that $p is not linked with OpenSSL 22 ! grep /usr/local/lib/ ldd-$p.out 23 24run-version-$p: $p-self.out 25 # check that runtime version is LibreSSL 26 grep 'SSLEAY_VERSION: LibreSSL' $p-self.out 27 28run-protocol-$p: $p-self.out 29 # check that LibreSSL protocol version is TLS 1.3 30 grep 'Protocol *: TLSv1.3' $p-self.out 31 32.endfor 33 34.include <bsd.regress.mk> 35