sys.mk (293286) | sys.mk (293288) |
---|---|
1# from: @(#)sys.mk 8.2 (Berkeley) 3/21/94 | 1# from: @(#)sys.mk 8.2 (Berkeley) 3/21/94 |
2# $FreeBSD: head/share/mk/sys.mk 293286 2016-01-07 00:19:03Z bdrewery $ | 2# $FreeBSD: head/share/mk/sys.mk 293288 2016-01-07 00:20:47Z bdrewery $ |
3 4unix ?= We run FreeBSD, not UNIX. 5.FreeBSD ?= true 6 7.if !defined(%POSIX) 8# 9# MACHINE_CPUARCH defines a collection of MACHINE_ARCH. Machines with 10# the same MACHINE_ARCH can run each other's binaries, so it necessarily --- 17 unchanged lines hidden (view full) --- 28 STAGING/DIRDEPS_BUILD \ 29 SYSROOT/DIRDEPS_BUILD 30 31__ENV_ONLY_OPTIONS:= \ 32 ${__DEFAULT_NO_OPTIONS} \ 33 ${__DEFAULT_YES_OPTIONS} \ 34 ${__DEFAULT_DEPENDENT_OPTIONS:H} 35 | 3 4unix ?= We run FreeBSD, not UNIX. 5.FreeBSD ?= true 6 7.if !defined(%POSIX) 8# 9# MACHINE_CPUARCH defines a collection of MACHINE_ARCH. Machines with 10# the same MACHINE_ARCH can run each other's binaries, so it necessarily --- 17 unchanged lines hidden (view full) --- 28 STAGING/DIRDEPS_BUILD \ 29 SYSROOT/DIRDEPS_BUILD 30 31__ENV_ONLY_OPTIONS:= \ 32 ${__DEFAULT_NO_OPTIONS} \ 33 ${__DEFAULT_YES_OPTIONS} \ 34 ${__DEFAULT_DEPENDENT_OPTIONS:H} 35 |
36__ENV_ONLY_VARS= \ 37 MAKEOBJDIR \ 38 MAKEOBJDIRPREFIX 39.for _var in ${__ENV_ONLY_VARS} 40_pre_includes_${_var:tl}:= ${${_var}:U__null} 41.endfor 42 | |
43# early include for customization 44# see local.sys.mk below 45# Not included when building in fmake compatibility mode (still needed 46# for older system support) 47.if defined(.PARSEDIR) 48.sinclude <local.sys.env.mk> 49 50.include <bsd.mkopt.mk> 51 52.if ${MK_DIRDEPS_BUILD} == "yes" 53.sinclude <meta.sys.mk> 54.elif ${MK_META_MODE} == "yes" && defined(.MAKEFLAGS) 55.if ${.MAKEFLAGS:M-B} == "" 56.MAKE.MODE= meta verbose 57.endif 58.endif 59.if ${MK_AUTO_OBJ} == "yes" | 36# early include for customization 37# see local.sys.mk below 38# Not included when building in fmake compatibility mode (still needed 39# for older system support) 40.if defined(.PARSEDIR) 41.sinclude <local.sys.env.mk> 42 43.include <bsd.mkopt.mk> 44 45.if ${MK_DIRDEPS_BUILD} == "yes" 46.sinclude <meta.sys.mk> 47.elif ${MK_META_MODE} == "yes" && defined(.MAKEFLAGS) 48.if ${.MAKEFLAGS:M-B} == "" 49.MAKE.MODE= meta verbose 50.endif 51.endif 52.if ${MK_AUTO_OBJ} == "yes" |
60# Reset, since it is allowed to be set from src-env.conf included before this. 61_pre_includes_makeobjdirprefix:= ${MAKEOBJDIRPREFIX:U__null} 62_pre_includes_makeobjdir:= ${MAKEOBJDIR:U__null} | |
63# This needs to be done early - before .PATH is computed 64# Don't do this for 'make showconfig' as it enables all options where meta mode 65# is not expected. 66.if !make(showconfig) 67.sinclude <auto.obj.mk> 68.endif 69.endif 70.else # bmake --- 344 unchanged lines hidden (view full) --- 415__MAKE_SHELL?=/bin/sh 416.SHELL: name=sh \ 417 quiet="set -" echo="set -v" filter="set -" \ 418 hasErrCtl=yes check="set -e" ignore="set +e" \ 419 echoFlag=v errFlag=e \ 420 path=${__MAKE_SHELL} 421.endif 422 | 53# This needs to be done early - before .PATH is computed 54# Don't do this for 'make showconfig' as it enables all options where meta mode 55# is not expected. 56.if !make(showconfig) 57.sinclude <auto.obj.mk> 58.endif 59.endif 60.else # bmake --- 344 unchanged lines hidden (view full) --- 405__MAKE_SHELL?=/bin/sh 406.SHELL: name=sh \ 407 quiet="set -" echo="set -v" filter="set -" \ 408 hasErrCtl=yes check="set -e" ignore="set +e" \ 409 echoFlag=v errFlag=e \ 410 path=${__MAKE_SHELL} 411.endif 412 |
423# Ensure MAKEOBJDIRPREFIX was not incorrectly set. 424.for _var in ${__ENV_ONLY_VARS} 425.if ${.MAKEOVERRIDES:M${_var}} || (defined(${_var}) && \ 426 ${${_var}} != ${_pre_includes_${_var:tl}}) 427.error ${_var} can only be set in environment, not as a global (in make.conf(5)) or command-line variable. 428.endif 429.undef _pre_includes_${_var:tl} 430.endfor 431 | |
432# Hack for ports compatibility. Historically, ports makefiles have 433# assumed they can examine MACHINE_CPU without including anything 434# because this was automatically included in sys.mk. For /usr/src, 435# this file has moved to being included from bsd.opts.mk. Until all 436# the ports files are modernized, and a reasonable transition 437# period has passed, include it while we're in a ports tree here 438# to preserve historic behavior. 439.if exists(${.CURDIR}/../../Mk/bsd.port.mk) 440.include <bsd.cpu.mk> 441.endif 442 443.endif # ! Posix | 413# Hack for ports compatibility. Historically, ports makefiles have 414# assumed they can examine MACHINE_CPU without including anything 415# because this was automatically included in sys.mk. For /usr/src, 416# this file has moved to being included from bsd.opts.mk. Until all 417# the ports files are modernized, and a reasonable transition 418# period has passed, include it while we're in a ports tree here 419# to preserve historic behavior. 420.if exists(${.CURDIR}/../../Mk/bsd.port.mk) 421.include <bsd.cpu.mk> 422.endif 423 424.endif # ! Posix |