NetBSD/share/mk/bsd.crypto.mk
thorpej f77d35e72c 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.
1999-07-11 20:17:01 +00:00

31 lines
653 B
Makefile

# $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