| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile.kern.inc,v 1.278 2021/04/05 06:22:00 simonb Exp $ | | 1 | # $NetBSD: Makefile.kern.inc,v 1.279 2021/04/05 22:52:03 christos Exp $ |
2 | # | | 2 | # |
3 | # This file contains common `MI' targets and definitions and it is included | | 3 | # This file contains common `MI' targets and definitions and it is included |
4 | # at the bottom of each `MD' ${MACHINE}/conf/Makefile.${MACHINE}. | | 4 | # at the bottom of each `MD' ${MACHINE}/conf/Makefile.${MACHINE}. |
5 | # | | 5 | # |
6 | # Each target in this file should be protected with `if !target(target)' | | 6 | # Each target in this file should be protected with `if !target(target)' |
7 | # or `if !commands(target)' and each variable should only be conditionally | | 7 | # or `if !commands(target)' and each variable should only be conditionally |
8 | # assigned `VAR ?= VALUE', so that everything can be overriden. | | 8 | # assigned `VAR ?= VALUE', so that everything can be overriden. |
9 | # | | 9 | # |
10 | # DEBUG is set to -g if debugging. | | 10 | # DEBUG is set to -g if debugging. |
11 | # PROF is set to -pg if profiling. | | 11 | # PROF is set to -pg if profiling. |
12 | # | | 12 | # |
13 | # To specify debugging, add the config line: makeoptions DEBUG="-g" | | 13 | # To specify debugging, add the config line: makeoptions DEBUG="-g" |
14 | # A better way is to specify -g only for a few files. | | 14 | # A better way is to specify -g only for a few files. |
| @@ -252,27 +252,27 @@ SYSTEM_LD_TAIL+=${SYSTEM_LD_TAIL_DEBUG} | | | @@ -252,27 +252,27 @@ SYSTEM_LD_TAIL+=${SYSTEM_LD_TAIL_DEBUG} |
252 | LINKFLAGS+= ${LINKFLAGS_DEBUG} | | 252 | LINKFLAGS+= ${LINKFLAGS_DEBUG} |
253 | EXTRA_KERNELS+= ${KERNELS:@.KERNEL.@${.KERNEL.}.gdb@} | | 253 | EXTRA_KERNELS+= ${KERNELS:@.KERNEL.@${.KERNEL.}.gdb@} |
254 | CTFFLAGS+= -g | | 254 | CTFFLAGS+= -g |
255 | TARGETSFX= .gdb | | 255 | TARGETSFX= .gdb |
256 | .elifndef PROF | | 256 | .elifndef PROF |
257 | LINKFLAGS+= ${LINKFLAGS_NORMAL} | | 257 | LINKFLAGS+= ${LINKFLAGS_NORMAL} |
258 | .endif | | 258 | .endif |
259 | | | 259 | |
260 | SYSTEM_LD_HEAD+= ${SYSTEM_LD_HEAD_EXTRA} | | 260 | SYSTEM_LD_HEAD+= ${SYSTEM_LD_HEAD_EXTRA} |
261 | SYSTEM_LD_TAIL_STAGE1= ${SYSTEM_LD_TAIL} | | 261 | SYSTEM_LD_TAIL_STAGE1= ${SYSTEM_LD_TAIL} |
262 | SYSTEM_LD_TAIL_STAGE2= ${SYSTEM_LD_TAIL} | | 262 | SYSTEM_LD_TAIL_STAGE2= ${SYSTEM_LD_TAIL} |
263 | .if defined(CTFMERGE) | | 263 | .if defined(CTFMERGE) |
264 | SYSTEM_LD_TAIL_STAGE2+= && echo ${CTFMERGE} ${CTFMFLAGS} -o ${.TARGET} ... \ | | 264 | SYSTEM_LD_TAIL_STAGE2+= && echo ${CTFMERGE} ${CTFMFLAGS} -o ${.TARGET} ... \ |
265 | && time -t ${CTFMERGE} ${CTFMFLAGS} -o ${.TARGET} \ | | 265 | && ${CTFMERGE} ${CTFMFLAGS} -o ${.TARGET} \ |
266 | ${SYSTEM_OBJ} ${EXTRA_OBJ} vers.o | | 266 | ${SYSTEM_OBJ} ${EXTRA_OBJ} vers.o |
267 | .endif | | 267 | .endif |
268 | .if defined(COPY_SYMTAB) | | 268 | .if defined(COPY_SYMTAB) |
269 | SYSTEM_LD_TAIL_STAGE2+= && echo ${DBSYM} $@ && ${DBSYM} $@ | | 269 | SYSTEM_LD_TAIL_STAGE2+= && echo ${DBSYM} $@ && ${DBSYM} $@ |
270 | .if !empty(DEBUG:M-g) | | 270 | .if !empty(DEBUG:M-g) |
271 | SYSTEM_LD_TAIL_STAGE2+= && echo ${DBSYM} $@.gdb && ${DBSYM} $@.gdb | | 271 | SYSTEM_LD_TAIL_STAGE2+= && echo ${DBSYM} $@.gdb && ${DBSYM} $@.gdb |
272 | .endif | | 272 | .endif |
273 | .endif | | 273 | .endif |
274 | SYSTEM_LD_TAIL_STAGE2+= ${SYSTEM_LD_TAIL_EXTRA} | | 274 | SYSTEM_LD_TAIL_STAGE2+= ${SYSTEM_LD_TAIL_EXTRA} |
275 | | | 275 | |
276 | ## | | 276 | ## |
277 | ## (6) port independent targets and dependencies: assym.h, vers.o | | 277 | ## (6) port independent targets and dependencies: assym.h, vers.o |
278 | ## | | 278 | ## |