summaryrefslogtreecommitdiffstats
path: root/secure/lib/libcrypto/Makefile.inc
diff options
context:
space:
mode:
Diffstat (limited to 'secure/lib/libcrypto/Makefile.inc')
-rw-r--r--secure/lib/libcrypto/Makefile.inc23
1 files changed, 23 insertions, 0 deletions
diff --git a/secure/lib/libcrypto/Makefile.inc b/secure/lib/libcrypto/Makefile.inc
index 6391c68..02db4b5 100644
--- a/secure/lib/libcrypto/Makefile.inc
+++ b/secure/lib/libcrypto/Makefile.inc
@@ -14,3 +14,26 @@ CFLAGS+= -DDEVRANDOM=\"/dev/urandom\"
.endif
WITH_RSA?= YES
+
+SRCS+= buildinf.h
+CLEANFILES+= buildinf.h
+CLEANDIRS+= openssl
+
+# this bogus dependency was the easiest way to get the openssl/
+# directory populated
+buildinf.h: openssl/opensslconf.h openssl/headers-copied
+ ( echo "#ifndef MK1MF_BUILD"; \
+ echo " /* auto-generated by crypto/Makefile.ssl for crypto/cversion.c */"; \
+ echo " #define CFLAGS \"$(CC)\""; \
+ echo " #define PLATFORM \"`uname -s`-`uname -m`\""; \
+ echo " #define DATE \"`date`\""; \
+ echo "#endif" ) > ${.TARGET}
+
+openssl/opensslconf.h: ../libcrypto/opensslconf-${MACHINE_ARCH}.h
+ @test -d openssl || mkdir -p openssl
+ cp ${.OODATE} ${.TARGET}
+
+openssl/headers-copied:
+ @test -d openssl || mkdir -p openssl
+ ${INSTALL} ${COPY} -m 444 ${CRYPTO_HDRS} ${EXTRA_HDRS} openssl
+ @touch ${.TARGET}
OpenPOWER on IntegriCloud