2014-05-17 01:47:06 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2014-05-17 20:31:34 +00:00
|
|
|
# Note: This file is also duplicated in the sys/conf/kern.pre.mk so
|
|
|
|
# it will always grab SRCCONF, even if it isn't being built in-tree
|
|
|
|
# to preserve historical (and useful) behavior. Changes here need to
|
|
|
|
# be reflected there so SRCCONF isn't included multiple times.
|
|
|
|
|
2015-05-30 15:08:52 +00:00
|
|
|
# make sure this is defined in a consistent manner
|
|
|
|
SRCTOP:= ${.PARSEDIR:tA:H:H}
|
|
|
|
|
2014-05-17 01:47:06 +00:00
|
|
|
# Allow user to configure things that only effect src tree builds.
|
|
|
|
SRCCONF?= /etc/src.conf
|
2014-05-17 20:31:34 +00:00
|
|
|
.if (exists(${SRCCONF}) || ${SRCCONF} != "/etc/src.conf") && !target(_srcconf_included_)
|
2015-05-30 15:08:52 +00:00
|
|
|
.sinclude "${SRCCONF}"
|
2014-07-28 23:36:21 +00:00
|
|
|
_srcconf_included_: .NOTMAIN
|
2014-05-17 01:47:06 +00:00
|
|
|
.endif
|
2015-05-30 15:08:52 +00:00
|
|
|
# If we were found via .../share/mk we need to replace that
|
2015-02-24 19:03:31 +00:00
|
|
|
# with ${.PARSEDIR:tA} so that we can be found by
|
|
|
|
# sub-makes launched from objdir.
|
|
|
|
.if ${.MAKEFLAGS:M.../share/mk} != ""
|
|
|
|
.MAKEFLAGS:= ${.MAKEFLAGS:S,.../share/mk,${.PARSEDIR:tA},}
|
|
|
|
.endif
|
|
|
|
.if ${MAKESYSPATH:Uno:M*.../*} != ""
|
|
|
|
MAKESYSPATH:= ${MAKESYSPATH:S,.../share/mk,${.PARSEDIR:tA},}
|
|
|
|
.export MAKESYSPATH
|
|
|
|
.endif
|
2015-06-13 19:20:56 +00:00
|
|
|
# tempting, but bsd.compiler.mk causes problems this early
|
|
|
|
#.include "src.opts.mk"
|