Changeset View
Changeset View
Standalone View
Standalone View
head/share/mk/local.dirdeps.mk
Show First 20 Lines • Show All 173 Lines • ▼ Show 20 Lines | |||||
.endif # CXX | .endif # CXX | ||||
.endif # !defined(KMOD) | .endif # !defined(KMOD) | ||||
# Has yacc files. | # Has yacc files. | ||||
.if !empty(_SRCS:M*.y) | .if !empty(_SRCS:M*.y) | ||||
DIRDEPS+= usr.bin/yacc.host | DIRDEPS+= usr.bin/yacc.host | ||||
.endif | .endif | ||||
_DPADD= ${DPADD} ${_PROGS_DPADD} | _DPADD= ${DPADD} ${_PROGS_DPADD} | ||||
.if !empty(_DPADD) | .if !empty(_DPADD) | ||||
# Taken from meta.autodep.mk (where it only does something with | |||||
# BUILD_AT_LEVEL0, which we don't use). | |||||
# This only works for DPADD with full OBJ/SRC paths, which is mostly just | # This only works for DPADD with full OBJ/SRC paths, which is mostly just | ||||
# _INTERNALLIBS. | # _INTERNALLIBS. | ||||
_DP_DIRDEPS= \ | _DP_DIRDEPS= \ | ||||
${_DPADD:O:u:M${OBJTOP}*:H:N.:tA:C,${OBJTOP}[^/]*/,,:N.:O:u} \ | ${_DPADD:O:u:M${OBJTOP}*:H:N.:tA:C,${OBJTOP}[^/]*/,,:N.:O:u} \ | ||||
${_DPADD:O:u:M${OBJROOT}*:N${OBJTOP}*:N${STAGE_ROOT}/*:H:S,${OBJROOT},,:C,^([^/]+)/(.*),\2.\1,:S,${HOST_TARGET}$,host,:N.*:O:u} | ${_DPADD:O:u:M${OBJROOT}*:N${OBJTOP}*:N${STAGE_ROOT}/*:H:S,${OBJROOT},,:C,^([^/]+)/(.*),\2.\1,:S,${HOST_TARGET}$,host,:N.*:O:u} | ||||
# Resolve the paths to RELDIRs | # Resolve the paths to RELDIRs | ||||
.if !empty(_DP_DIRDEPS) | .if !empty(_DP_DIRDEPS) | ||||
DIRDEPS+= ${_DP_DIRDEPS:C,^,${SRCTOP}/,:tA:C,^${SRCTOP}/,,} | DIRDEPS+= ${_DP_DIRDEPS:C,^,${SRCTOP}/,:tA:C,^${SRCTOP}/,,} | ||||
Show All 30 Lines |