diff options
Diffstat (limited to 'src/regress/lib/libssl/interop/openssl/Makefile')
-rw-r--r-- | src/regress/lib/libssl/interop/openssl/Makefile | 27 |
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) | ||
4 | regress: | ||
5 | # install openssl-1.0.2p from ports for interop tests | ||
6 | @echo SKIPPED | ||
7 | .endif | ||
8 | |||
9 | PROGS = client server | ||
10 | CPPFLAGS = -I /usr/local/include/eopenssl | ||
11 | LDFLAGS = -L /usr/local/lib/eopenssl | ||
12 | LDADD = -lssl -lcrypto | ||
13 | DPADD = /usr/local/lib/eopenssl/libssl.a \ | ||
14 | /usr/local/lib/eopenssl/libcrypto.a | ||
15 | LD_LIBRARY_PATH = /usr/local/lib/eopenssl | ||
16 | |||
17 | .for p in ${PROGS} | ||
18 | run-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> | ||