1# $FreeBSD$ 2 3# Note: This file is also duplicated in the sys/conf/kern.pre.mk so 4# it will always grab SRCCONF, even if it isn't being built in-tree 5# to preserve historical (and useful) behavior. Changes here need to 6# be reflected there so SRCCONF isn't included multiple times. 7 8# Allow user to configure things that only effect src tree builds. 9SRCCONF?= /etc/src.conf 10.if (exists(${SRCCONF}) || ${SRCCONF} != "/etc/src.conf") && !target(_srcconf_included_) 11.include "${SRCCONF}" 12_srcconf_included_: .NOTMAIN 13.endif 14# If we were found via .../share/mk we need to replace that in 15# with ${.PARSEDIR:tA} so that we can be found by 16# sub-makes launched from objdir. 17.if ${.MAKEFLAGS:M.../share/mk} != "" 18.MAKEFLAGS:= ${.MAKEFLAGS:S,.../share/mk,${.PARSEDIR:tA},} 19.endif 20.if ${MAKESYSPATH:Uno:M*.../*} != "" 21MAKESYSPATH:= ${MAKESYSPATH:S,.../share/mk,${.PARSEDIR:tA},} 22.export MAKESYSPATH 23.endif 24