diff options
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libcrypto/Makefile | 12 | ||||
| -rw-r--r-- | src/lib/libssl/Makefile | 12 | ||||
| -rw-r--r-- | src/lib/libtls/Makefile | 12 |
3 files changed, 33 insertions, 3 deletions
diff --git a/src/lib/libcrypto/Makefile b/src/lib/libcrypto/Makefile index b92f8cd56d..b38bf884b9 100644 --- a/src/lib/libcrypto/Makefile +++ b/src/lib/libcrypto/Makefile | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | # $OpenBSD: Makefile,v 1.38 2020/01/22 06:56:50 jsing Exp $ | 1 | # $OpenBSD: Makefile,v 1.39 2020/01/22 07:58:27 jsing Exp $ |
| 2 | 2 | ||
| 3 | LIB= crypto | 3 | LIB= crypto |
| 4 | LIBREBUILD=y | 4 | LIBREBUILD=y |
| @@ -411,6 +411,16 @@ HDRS_GEN=\ | |||
| 411 | 411 | ||
| 412 | prereq: obj_mac.h | 412 | prereq: obj_mac.h |
| 413 | 413 | ||
| 414 | check_includes: prereq | ||
| 415 | @cd ${.CURDIR}; for i in $(HDRS) $(HDRS_GEN); do \ | ||
| 416 | j="cmp -s $$i ${DESTDIR}/usr/include/openssl/`basename $$i` || \ | ||
| 417 | (echo \"`basename $$i` differs from installed version; \" \ | ||
| 418 | \"did you forget 'make includes'?\" && false)"; \ | ||
| 419 | eval "$$j"; \ | ||
| 420 | done; | ||
| 421 | |||
| 422 | all: check_includes | ||
| 423 | |||
| 414 | includes: prereq | 424 | includes: prereq |
| 415 | @test -d ${DESTDIR}/usr/include/openssl || \ | 425 | @test -d ${DESTDIR}/usr/include/openssl || \ |
| 416 | mkdir ${DESTDIR}/usr/include/openssl | 426 | mkdir ${DESTDIR}/usr/include/openssl |
diff --git a/src/lib/libssl/Makefile b/src/lib/libssl/Makefile index b30fcca9eb..b38bb5f682 100644 --- a/src/lib/libssl/Makefile +++ b/src/lib/libssl/Makefile | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | # $OpenBSD: Makefile,v 1.59 2020/01/22 01:21:43 jsing Exp $ | 1 | # $OpenBSD: Makefile,v 1.60 2020/01/22 07:58:27 jsing Exp $ |
| 2 | 2 | ||
| 3 | .include <bsd.own.mk> | 3 | .include <bsd.own.mk> |
| 4 | .ifndef NOMAN | 4 | .ifndef NOMAN |
| @@ -81,6 +81,16 @@ HDRS= dtls1.h srtp.h ssl.h ssl2.h ssl23.h ssl3.h tls1.h | |||
| 81 | 81 | ||
| 82 | .PATH: ${.CURDIR} | 82 | .PATH: ${.CURDIR} |
| 83 | 83 | ||
| 84 | check_includes: | ||
| 85 | @cd ${.CURDIR}; for i in $(HDRS); do \ | ||
| 86 | j="cmp -s $$i ${DESTDIR}/usr/include/openssl/`basename $$i` || \ | ||
| 87 | (echo \"`basename $$i` differs from installed version; \" \ | ||
| 88 | \"did you forget 'make includes'?\" && false)"; \ | ||
| 89 | eval "$$j"; \ | ||
| 90 | done; | ||
| 91 | |||
| 92 | all: check_includes | ||
| 93 | |||
| 84 | includes: | 94 | includes: |
| 85 | @test -d ${DESTDIR}/usr/include/openssl || \ | 95 | @test -d ${DESTDIR}/usr/include/openssl || \ |
| 86 | mkdir ${DESTDIR}/usr/include/openssl | 96 | mkdir ${DESTDIR}/usr/include/openssl |
diff --git a/src/lib/libtls/Makefile b/src/lib/libtls/Makefile index c47119685e..fdf976169f 100644 --- a/src/lib/libtls/Makefile +++ b/src/lib/libtls/Makefile | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | # $OpenBSD: Makefile,v 1.33 2018/02/08 05:56:49 jsing Exp $ | 1 | # $OpenBSD: Makefile,v 1.34 2020/01/22 07:58:28 jsing Exp $ |
| 2 | 2 | ||
| 3 | .include <bsd.own.mk> | 3 | .include <bsd.own.mk> |
| 4 | .ifndef NOMAN | 4 | .ifndef NOMAN |
| @@ -39,6 +39,16 @@ SRCS= tls.c \ | |||
| 39 | tls_ocsp.c \ | 39 | tls_ocsp.c \ |
| 40 | tls_verify.c | 40 | tls_verify.c |
| 41 | 41 | ||
| 42 | check_includes: | ||
| 43 | @cd ${.CURDIR}; for i in $(HDRS); do \ | ||
| 44 | j="cmp -s $$i ${DESTDIR}/usr/include/openssl/`basename $$i` || \ | ||
| 45 | (echo \"`basename $$i` differs from installed version; \" \ | ||
| 46 | \"did you forget 'make includes'?\" && false)"; \ | ||
| 47 | eval "$$j"; \ | ||
| 48 | done; | ||
| 49 | |||
| 50 | all: check_includes | ||
| 51 | |||
| 42 | includes: | 52 | includes: |
| 43 | @cd ${.CURDIR}; for i in $(HDRS); do \ | 53 | @cd ${.CURDIR}; for i in $(HDRS); do \ |
| 44 | j="cmp -s $$i ${DESTDIR}/usr/include/$$i || \ | 54 | j="cmp -s $$i ${DESTDIR}/usr/include/$$i || \ |
