If we're building a debug kernel, add target to install the .gdbinit files

from tools/debugscripts.
This commit is contained in:
Greg Lehey 2003-06-12 08:09:48 +00:00
parent 5ba934c38d
commit 222aa33abc

View File

@ -52,8 +52,16 @@ FULLKERNEL= ${KERNEL_KO}
FULLKERNEL= ${KERNEL_KO}.debug
${KERNEL_KO}: ${FULLKERNEL}
${OBJCOPY} --strip-debug ${FULLKERNEL} ${KERNEL_KO}
install.debug reinstall.debug:
install.debug reinstall.debug: gdbinit
cd ${.CURDIR}; ${MAKE} -DINSTALL_DEBUG ${.TARGET:R}
gdbinit:
sed < ${S}/../tools/debugscripts/dot.gdbinit > .gdbinit \
"s:MODPATH:modules${S}/modules:"
cp ${S}/../tools/debugscripts/gdbinit.kernel \
${S}/../tools/debugscripts/gdbinit.vinum ${.CURDIR}
cp ${S}/../tools/debugscripts/gdbinit.${MACHINE_ARCH} \
${.CURDIR}/gdbinit.machine
.endif
${FULLKERNEL}: ${SYSTEM_DEP} vers.o