Changeset View
Changeset View
Standalone View
Standalone View
share/mk/bsd.dep.mk
Show First 20 Lines • Show All 193 Lines • ▼ Show 20 Lines | |||||
# Handle OBJS=../somefile.o hacks. Just replace '/' rather than use :T to | # Handle OBJS=../somefile.o hacks. Just replace '/' rather than use :T to | ||||
# avoid collisions. | # avoid collisions. | ||||
DEPEND_FILTER= C,/,_,g | DEPEND_FILTER= C,/,_,g | ||||
.if !empty(OBJS) | .if !empty(OBJS) | ||||
.if !defined(_ALLOW_ABSOLUTE_OBJ_PATH) && ${OBJS:M/*} | .if !defined(_ALLOW_ABSOLUTE_OBJ_PATH) && ${OBJS:M/*} | ||||
# Absolute paths to OBJS should be an error inside ${SRCTOP}, but some users | # Absolute paths to OBJS should be an error inside ${SRCTOP}, but some users | ||||
# might be relying on this feature, so add an opt-out mechanism. | # might be relying on this feature, so add an opt-out mechanism. | ||||
.if defined(SRCTOP) && ${OBJS:M${SRCTOP}*} | .if defined(SRCTOP) && ${OBJS:M${SRCTOP}*} | ||||
.error "$$OBJS inside $$SRCTOP not allowed: ${OBJS:M${SRCTOP}*}" | .error $$OBJS inside $$SRCTOP not allowed: ${OBJS:M${SRCTOP}*} | ||||
.elif ${OBJS:N${_ABSOLUTE_PATH_OBJS}:M/*} | .elif ${OBJS:N${_ABSOLUTE_PATH_OBJS}:M/*} | ||||
.error "$$OBJS absolute path not allowed: ${OBJS:N${_ABSOLUTE_PATH_OBJS}:M/*}. \ | .error $$OBJS absolute path not allowed: ${OBJS:N${_ABSOLUTE_PATH_OBJS}:M/*}.\ | ||||
If this is intended, add them to _ABSOLUTE_PATH_OBJS to silence this error\ | If this is intended, add them to _ABSOLUTE_PATH_OBJS to silence this error\ | ||||
or define _ALLOW_ABSOLUTE_OBJ_PATH to disable this diagnostic." | or define _ALLOW_ABSOLUTE_OBJ_PATH to disable this diagnostic. | ||||
emaste: We can remove the space before \
| |||||
.endif | .endif | ||||
.endif | .endif | ||||
DEPENDOBJS+= ${OBJS} | DEPENDOBJS+= ${OBJS} | ||||
.else | .else | ||||
DEPENDSRCS+= ${SRCS:M*.[cSC]} ${SRCS:M*.cxx} ${SRCS:M*.cpp} ${SRCS:M*.cc} | DEPENDSRCS+= ${SRCS:M*.[cSC]} ${SRCS:M*.cxx} ${SRCS:M*.cpp} ${SRCS:M*.cc} | ||||
DEPENDSRCS+= ${DPSRCS:M*.[cSC]} ${DPSRCS:M*.cxx} ${DPSRCS:M*.cpp} ${DPSRCS:M*.cc} | DEPENDSRCS+= ${DPSRCS:M*.[cSC]} ${DPSRCS:M*.cxx} ${DPSRCS:M*.cpp} ${DPSRCS:M*.cc} | ||||
.if !empty(DEPENDSRCS) | .if !empty(DEPENDSRCS) | ||||
DEPENDOBJS+= ${DEPENDSRCS:${OBJS_SRCS_FILTER:ts:}:S,$,.o,} | DEPENDOBJS+= ${DEPENDSRCS:${OBJS_SRCS_FILTER:ts:}:S,$,.o,} | ||||
▲ Show 20 Lines • Show All 169 Lines • Show Last 20 Lines |
We can remove the space before \