summaryrefslogtreecommitdiff
path: root/lib/libssl/crypto
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>1998-11-18 23:30:38 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>1998-11-18 23:30:38 +0000
commit0ec28bb237d972871d7c7f5be98a57f16ff00925 (patch)
tree020c1c29b7006e507a4d2937eb49302960a1ba00 /lib/libssl/crypto
parent556168fa9898373687ebf8d3b8b9904a7d8d74ba (diff)
"foo.h" -> <ssl/foo.h> in ssl includes, so we do not need -I/usr/include/ssl
and we won't be bothered by nameclashes with application headers
Diffstat (limited to 'lib/libssl/crypto')
-rw-r--r--lib/libssl/crypto/Makefile14
1 files changed, 9 insertions, 5 deletions
diff --git a/lib/libssl/crypto/Makefile b/lib/libssl/crypto/Makefile
index fc1a092225b..e2c1c4f858a 100644
--- a/lib/libssl/crypto/Makefile
+++ b/lib/libssl/crypto/Makefile
@@ -164,14 +164,18 @@ HDRS= asn1/asn1.h asn1/asn1_mac.h bf/blowfish.h bio/bio.h \
${LCRYPTO_SRC}/txt_db ${LCRYPTO_SRC}
includes:
- @cd ${LCRYPTO_SRC}; for i in $(HDRS); do \
- j="cmp -s ${LCRYPTO_SRC}/$$i \
- ${DESTDIR}/usr/include/ssl/`basename $$i` || \
+ @d=`mktemp -d /tmp/libsslXXXXXXXXXX`; \
+ cd ${LCRYPTO_SRC}; for i in $(HDRS); do \
+ f=`basename $$i`; \
+ j="sed 's/#include \"\\([^\"]*\\)\"/#include <ssl\\/\\1>/' \
+ ${LCRYPTO_SRC}/$$i >$$d/$$f && \
+ (cmp -s $$d/$$f ${DESTDIR}/usr/include/ssl/$$f || \
${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} -m 444 \
- ${LCRYPTO_SRC}/$$i ${DESTDIR}/usr/include/ssl"; \
+ $$d/$$f ${DESTDIR}/usr/include/ssl)"; \
echo $$j; \
eval "$$j"; \
- done
+ done; \
+ rm -rf $$d
.include <bsd.lib.mk>