With MK_AUTO_OBJ=yes objdir is created during sys.mk

If a makefile sets NO_OBJ, we should honor that by setting
.OBJDIR back to .CURDIR
This commit is contained in:
Simon J. Gerraty 2015-06-11 13:53:15 +00:00
parent 92f755617b
commit e5b44e3743
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/projects/bmake/; revision=284263

View File

@ -47,6 +47,10 @@ __<bsd.obj.mk>__:
objwarn:
obj:
CANONICALOBJDIR= ${.OBJDIR}
.if defined(NO_OBJ)
# but this makefile does not want it!
.OBJDIR: ${.CURDIR}
.endif
.elif defined(MAKEOBJDIRPREFIX)
CANONICALOBJDIR:=${MAKEOBJDIRPREFIX}${.CURDIR}
.elif defined(MAKEOBJDIR) && ${MAKEOBJDIR:M/*} != ""