Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/share/mk Makefile fragment used to determine the path to cry...



details:   https://anonhg.NetBSD.org/src/rev/ffacee069dba
branches:  trunk
changeset: 474571:ffacee069dba
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Sun Jul 11 20:17:01 1999 +0000

description:
Makefile fragment used to determine the path to crypto code in the
source tree.  Allows CRYPTOBASE to be set in mk.conf or environment.
If it's not set, it searches for: crypto-us, crypto-intl in that order.

Setting CRYPTOBASE to none forces a no-crypto build.  EXPORTABLE_SYSTEM
is supported for backwards-compatibility.

Will be used in a forthcoming mega-commit which significantly improves
the build process when building a crypto-enabled system, and allows
for the international crypto sub-tree to be seamlessly integrated into
the build process.

diffstat:

 share/mk/bsd.crypto.mk |  30 ++++++++++++++++++++++++++++++
 1 files changed, 30 insertions(+), 0 deletions(-)

diffs (34 lines):

diff -r 34e2f70da24f -r ffacee069dba share/mk/bsd.crypto.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/share/mk/bsd.crypto.mk    Sun Jul 11 20:17:01 1999 +0000
@@ -0,0 +1,30 @@
+#      $NetBSD: bsd.crypto.mk,v 1.1 1999/07/11 20:17:01 thorpej Exp $
+
+# XXX error out if SRCTOP isn't defined.
+
+.include <bsd.own.mk>  # for configuration variables
+
+# Compatibility with old Makefile variables
+.if defined(EXPORTABLE_SYSTEM)
+CRYPTOBASE=none
+.endif
+
+.if !defined(CRYPTOBASE)
+.if exists(${SRCTOP}/crypto-us)
+CRYPTOBASE=crypto-us
+.elif exists(${SRCTOP}/crypto-intl)
+CRYPTOBASE=crypto-intl
+.else
+.undef CRYPTOBASE
+.endif # exists
+.endif # CRYPTOBASE
+
+.if defined(CRYPTOBASE) && (${CRYPTOBASE} != "none")
+CRYPTOPATH=${SRCTOP}/${CRYPTOBASE}
+.else
+.undef CRYPTOPATH
+.endif
+
+.if defined(CRYPTOPATH) && !exists(${CRYPTOPATH})
+.undef CRYPTOPATH
+.endif



Home | Main Index | Thread Index | Old Index