Partial MFC r291349:

Standardize on OBJTOP in and outside of META MODE.

  For stable/10 this means bringing OBJTOP support in which simplifies
  MFCs.
This commit is contained in:
bdrewery 2015-12-15 01:37:46 +00:00
parent 54d1dbbb2e
commit 4d74a8776e

View File

@ -46,10 +46,13 @@ __<bsd.obj.mk>__:
CANONICALOBJDIR:=${MAKEOBJDIRPREFIX}${.CURDIR}
.elif defined(MAKEOBJDIR) && ${MAKEOBJDIR:M/*} != ""
CANONICALOBJDIR:=${MAKEOBJDIR}
OBJTOP?= ${MAKEOBJDIR}
.else
CANONICALOBJDIR:=/usr/obj${.CURDIR}
.endif
OBJTOP?= ${.OBJDIR:S,${.CURDIR},,}${SRCTOP}
#
# Warn of unorthodox object directory.
#