summaryrefslogtreecommitdiff
path: root/src/regress/lib/libssl/interop/openssl/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/regress/lib/libssl/interop/openssl/Makefile')
-rw-r--r--src/regress/lib/libssl/interop/openssl/Makefile27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/regress/lib/libssl/interop/openssl/Makefile b/src/regress/lib/libssl/interop/openssl/Makefile
new file mode 100644
index 0000000000..26095d0019
--- /dev/null
+++ b/src/regress/lib/libssl/interop/openssl/Makefile
@@ -0,0 +1,27 @@
1# $OpenBSD: Makefile,v 1.1.1.1 2018/11/07 01:08:49 bluhm Exp $
2
3.if ! exists(/usr/local/bin/eopenssl)
4regress:
5 # install openssl-1.0.2p from ports for interop tests
6 @echo SKIPPED
7.endif
8
9PROGS = client server
10CPPFLAGS = -I /usr/local/include/eopenssl
11LDFLAGS = -L /usr/local/lib/eopenssl
12LDADD = -lssl -lcrypto
13DPADD = /usr/local/lib/eopenssl/libssl.a \
14 /usr/local/lib/eopenssl/libcrypto.a
15LD_LIBRARY_PATH = /usr/local/lib/eopenssl
16
17.for p in ${PROGS}
18run-ldd-$p: ldd-$p.out
19 @echo '\n======== $@ ========'
20 # check that $p is linked with OpenSSL
21 grep -q /usr/local/lib/eopenssl/libcrypto.so ldd-$p.out
22 grep -q /usr/local/lib/eopenssl/libssl.so ldd-$p.out
23 # check that $p is not linked with LibreSSL
24 ! grep -v libc.so ldd-$p.out | grep /usr/lib/
25.endfor
26
27.include <bsd.regress.mk>