Changeset View
Changeset View
Standalone View
Standalone View
sys/conf/kern.post.mk
Show First 20 Lines • Show All 323 Lines • ▼ Show 20 Lines | |||||
.endif # !exists(${_depfile}) | .endif # !exists(${_depfile}) | ||||
.endfor | .endfor | ||||
.NOPATH: .depend ${DEPENDFILES} | .NOPATH: .depend ${DEPENDFILES} | ||||
.depend: .PRECIOUS ${SRCS} | .depend: .PRECIOUS ${SRCS} | ||||
_ILINKS= machine | _ILINKS= machine | ||||
CFLAGS+= -fdebug-prefix-map=./machine=${SYSDIR}/${MACHINE}/include | |||||
.if ${MACHINE} != ${MACHINE_CPUARCH} && ${MACHINE} != "arm64" | .if ${MACHINE} != ${MACHINE_CPUARCH} && ${MACHINE} != "arm64" | ||||
_ILINKS+= ${MACHINE_CPUARCH} | _ILINKS+= ${MACHINE_CPUARCH} | ||||
CFLAGS+= -fdebug-prefix-map=./${MACHINE_CPUARCH}=${SYSDIR}/${MACHINE_CPUARCH}/include | |||||
.endif | .endif | ||||
.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64" | .if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64" | ||||
_ILINKS+= x86 | _ILINKS+= x86 | ||||
CFLAGS+= -fdebug-prefix-map=./x86=${SYSDIR}/x86/include | |||||
.endif | .endif | ||||
# Ensure that DWARF info contains a full path for auto-generated headers. | |||||
CFLAGS+= -fdebug-prefix-map=.=${.OBJDIR} | |||||
# Ensure that the link exists without depending on it when it exists. | # Ensure that the link exists without depending on it when it exists. | ||||
.for _link in ${_ILINKS} | .for _link in ${_ILINKS} | ||||
.if !exists(${.OBJDIR}/${_link}) | .if !exists(${.OBJDIR}/${_link}) | ||||
${SRCS} ${CLEAN:M*.o}: ${_link} | ${SRCS} ${CLEAN:M*.o}: ${_link} | ||||
.endif | .endif | ||||
.endfor | .endfor | ||||
▲ Show 20 Lines • Show All 111 Lines • Show Last 20 Lines |