1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-10-20 02:38:43 +00:00

Add options for auto obj and meta mode to sys.mk

This commit is contained in:
Simon J. Gerraty 2015-05-24 02:46:08 +00:00
parent 89ea69b2fa
commit 9932374ea3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/projects/bmake/; revision=283348

View File

@ -328,10 +328,30 @@ __MAKE_CONF?=/etc/make.conf
.endif
# Setup anything for the FreeBSD source build, if we're building
# inside the source tree. Needs to be after make.conf, but before
# local stuff.
# inside the source tree. Needs to be after make.conf
.sinclude <src.sys.mk>
# Some options we need now
__DEFAULT_NO_OPTIONS+= \
AUTO_OBJ \
META_MODE \
META_FILES \
STAGING
.include <bsd.mkopt.mk>
.if ${MK_AUTO_OBJ} == "yes"
# This needs to be done early - before .PATH is computed
.sinclude <auto.obj.mk>
.endif
.if ${MK_META_MODE} == "yes"
.sinclude <meta.sys.mk>
.elif ${MK_META_FILES} == "yes"
.MAKE.MODE= meta verbose
.else
MK_STAGING= no
.endif
.if defined(__MAKE_SHELL) && !empty(__MAKE_SHELL)
SHELL= ${__MAKE_SHELL}
.SHELL: path=${__MAKE_SHELL}