Makefile.kern.inc revision 1.158.2.3 1 # $NetBSD: Makefile.kern.inc,v 1.158.2.3 2017/12/03 11:36:57 jdolecek Exp $
2 #
3 # This file contains common `MI' targets and definitions and it is included
4 # at the bottom of each `MD' ${MACHINE}/conf/Makefile.${MACHINE}.
5 #
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
8 # assigned `VAR ?= VALUE', so that everything can be overriden.
9 #
10 # DEBUG is set to -g if debugging.
11 # PROF is set to -pg if profiling.
12 #
13 # To specify debugging, add the config line: makeoptions DEBUG="-g"
14 # A better way is to specify -g only for a few files.
15 #
16 # makeoptions DEBUGLIST="uvm* trap if_*"
17 #
18 # all ports are expected to include bsd.own.mk for toolchain settings
19
20 # Default DEBUG to -g if kernel debug info is requested by MKKDEBUG=yes
21 .if defined(MKKDEBUG) && ${MKKDEBUG} == "yes"
22 DEBUG?=-g
23 .endif
24
25 ##
26 ## (0) toolchain settings for things that aren't part of the standard
27 ## toolchain
28 ##
29 HOST_SH?= sh
30 DBSYM?= dbsym
31 MKDEP?= mkdep
32 STRIP?= strip
33 OBJCOPY?= objcopy
34 OBJDUMP?= objdump
35 CSCOPE?= cscope
36 MKID?= mkid
37 UUDECODE?= ${TOOL_UUDECODE:Uuudecode}
38 HEXDUMP?= ${TOOL_HEXDUMP:Uhexdump}
39 GENASSYM?= ${TOOL_GENASSYM:Ugenassym}
40 .MAKEOVERRIDES+=USETOOLS # make sure proper value is propagated
41
42 _MKMSG?= @\#
43 _MKSHMSG?= echo
44 _MKSHECHO?= echo
45 _MKSHNOECHO= :
46 _MKMSG_CREATE?= :
47 _MKTARGET_COMPILE?= :
48 _MKTARGET_CREATE?= :
49
50 ##
51 ## (1) port independent source tree identification
52 ##
53 # source tree is located via $S relative to the compilation directory
54 .ifndef S
55 S!= cd ../../../.. && pwd
56 .endif
57
58 ##
59 ## (2) compile settings
60 ##
61 ## CPPFLAGS, CFLAGS, and AFLAGS must be set in the port's Makefile
62 ##
63 INCLUDES?= -I. ${EXTRA_INCLUDES} -I${S}/../common/include -I$S/arch \
64 -I$S -nostdinc
65 CPPFLAGS+= ${INCLUDES} ${IDENT} -D_KERNEL -D_KERNEL_OPT
66 CPPFLAGS+= -std=gnu99
67 DEFCOPTS?= -O2
68 COPTS?= ${DEFCOPTS}
69 DBG= # might contain unwanted -Ofoo
70 CWARNFLAGS+= -Wall -Wno-main -Wno-format-zero-length -Wpointer-arith
71 CWARNFLAGS+= -Wmissing-prototypes -Wstrict-prototypes
72 CWARNFLAGS+= -Wold-style-definition
73 CWARNFLAGS+= -Wswitch -Wshadow
74 CWARNFLAGS+= -Wcast-qual -Wwrite-strings
75 CWARNFLAGS+= -Wno-unreachable-code
76 #CWARNFLAGS+= -Wc++-compat -Wno-error=c++-compat
77 CWARNFLAGS+= -Wno-pointer-sign -Wno-attributes
78 . if ${MACHINE} == "i386" || ${MACHINE_ARCH} == "x86_64" || \
79 ${MACHINE_ARCH} == "sparc64" || ${MACHINE} == "prep"
80 CWARNFLAGS+= -Wextra -Wno-unused-parameter
81 . endif
82 . if ${MACHINE} == "i386" || ${MACHINE_ARCH} == "x86_64"
83 CWARNFLAGS+= -Wold-style-definition
84 . endif
85 # Add -Wno-sign-compare. -Wsign-compare is included in -Wall as of GCC 3.3,
86 # but our sources aren't up for it yet.
87 CWARNFLAGS+= -Wno-sign-compare
88
89 CWARNFLAGS.clang+= -Wno-unknown-pragmas -Wno-conversion \
90 -Wno-self-assign -Wno-error=address-of-packed-member \
91 -Wno-error=constant-conversion
92
93 CWARNFLAGS.ah_regdomain.c= ${${ACTIVE_CC} == "clang":? \
94 -Wno-shift-count-negative -Wno-shift-count-overflow:}
95
96 CWARNFLAGS.ioconf.c= ${${ACTIVE_CC} == "clang":? -Wno-unused-const-variable :}
97
98 CFLAGS+= -ffreestanding -fno-zero-initialized-in-bss
99 CFLAGS+= ${DEBUG} ${COPTS}
100 AFLAGS+= -D_LOCORE -Wa,--fatal-warnings
101
102 # XXX
103 .if defined(HAVE_GCC) || defined(HAVE_LLVM)
104 CFLAGS+= -fno-strict-aliasing
105 CFLAGS+= -fno-common
106 .endif
107
108 # Use the per-source COPTS variables to add -g to just those
109 # files that match the shell patterns given in ${DEBUGLIST}
110 #
111 .for i in ${DEBUGLIST}
112 . for j in ${ALLFILES:M*.c:T:M$i.c}
113 COPTS.${j}+=-g
114 . endfor
115 .endfor
116
117 # Always compile debugsyms.c with debug information.
118 # This allows gdb to use type informations.
119 #
120 COPTS.debugsyms.c+= -g
121
122 # Add CTF sections for DTrace
123 .if defined(CTFCONVERT)
124 COMPILE_CTFCONVERT= ${_MKSHECHO}\
125 ${CTFCONVERT} ${CTFFLAGS} ${.TARGET} && \
126 ${CTFCONVERT} ${CTFFLAGS} ${.TARGET}
127 .else
128 COMPILE_CTFCONVERT= ${_MKSHNOECHO}
129 .endif
130
131 KCOMPILE.c= ${CC} ${COPTS.${<:T}} ${CFLAGS} ${CPPFLAGS} -c $< -o $@
132 KCOMPILE.s= ${CC} ${AFLAGS} ${AFLAGS.${<:T}} ${CPPFLAGS} -c $< -o $@
133 KLINK.o= ${LD} -r ${LINKFORMAT} -Map=${.TARGET}.map -o ${.TARGET} ${.ALLSRC}
134
135 # compile rules: rules are named ${TYPE}_${SUFFIX} where TYPE is NORMAL or
136 # NOPROF and SUFFIX is the file suffix, capitalized (e.g. C for a .c file).
137 NORMAL_C?= @${_MKSHMSG} "compile ${.CURDIR:T}/${.TARGET}" && \
138 ${_MKSHECHO} ${KCOMPILE.c} ${PROF} && \
139 ${KCOMPILE.c} ${PROF} && \
140 ${COMPILE_CTFCONVERT}
141 NOPROF_C?= @${_MKSHMSG} "compile ${.CURDIR:T}/${.TARGET}" && \
142 ${_MKSHECHO} ${KCOMPILE.c} && \
143 ${KCOMPILE.c} && \
144 ${COMPILE_CTFCONVERT}
145 NORMAL_S?= @${_MKSHMSG} "compile ${.CURDIR:T}/${.TARGET}" && \
146 ${_MKSHECHO} ${KCOMPILE.s} && \
147 ${KCOMPILE.s}
148
149 # link rules:
150 LINK_O?= @${_MKSHMSG} " link ${.CURDIR:T}/${.TARGET}" && \
151 ${_MKSHECHO} ${KLINK.o} && \
152 ${KLINK.o}
153
154 ##
155 ## (3) libkern and compat
156 ##
157 ## Set KERN_AS in the port Makefile to "obj" or "library". The
158 ## default is "library", as documented in $S/lib/libkern/Makefile.inc.
159 ##
160
161 ### find out what to use for libkern
162 .include "$S/lib/libkern/Makefile.inc"
163 .ifndef PROF
164 LIBKERN?= ${KERNLIB}
165 .else
166 LIBKERN?= ${KERNLIB_PROF}
167 .endif
168
169 LIBKERNLN?= ${KERNLIBLN}
170
171 ### find out what to use for libcompat
172 .include "$S/compat/common/Makefile.inc"
173 .ifndef PROF
174 SYSLIBCOMPAT?= ${COMPATLIB}
175 .else
176 SYSLIBCOMPAT?= ${COMPATLIB_PROF}
177 .endif
178
179 SYSLIBCOMPATLN?= ${COMPATLIBLN}
180
181 ##
182 ## (4) local objects, compile rules, and dependencies
183 ##
184 ## Each port should have a corresponding section with settings for
185 ## MD_CFILES, MD_SFILES, and MD_OBJS, along with build rules for same.
186 ##
187
188 .if !defined(___USE_SUFFIX_RULES___)
189 _MD_OBJS= ${MD_OBJS:T}
190 .else
191 _MD_OBJS= ${MD_OBJS}
192 .endif
193
194 ##
195 ## (5) link settings
196 ##
197 ## TEXTADDR (or LOADADDRESS), LINKFORMAT, LINKSCRIPT, and any EXTRA_LINKFLAGS
198 ## must be set in the port's Makefile. The port specific definitions for
199 ## LINKFLAGS_NORMAL and LINKFLAGS_DEBUG will added to the LINKFLAGS
200 ## depending on the value of DEBUG.
201 ##
202 # load lines for config "xxx" will be emitted as:
203 # xxx: ${SYSTEM_DEP} swapxxxx.o vers.o build_kernel
204
205 SYSTEM_LIB= ${MD_LIBS} ${SYSLIBCOMPAT} ${LIBKERN}
206 SYSTEM_OBJ?= ${_MD_OBJS} ${OBJS} ${SYSTEM_LIB}
207 SYSTEM_DEP+= Makefile ${SYSTEM_OBJ:O}
208 .if defined(CTFMERGE)
209 SYSTEM_CTFMERGE= ${CTFMERGE} ${CTFMFLAGS} -o ${.TARGET} ${SYSTEM_OBJ} ${EXTRA_OBJ} vers.o
210 .else
211 SYSTEM_CTFMERGE= ${_MKSHECHO}
212 .endif
213
214 REMOVE_SWAP= [@]
215 .for k in ${KERNELS}
216 REMOVE_SWAP:= ${REMOVE_SWAP}:Nswap${k}.o
217 .endfor
218
219 SYSTEM_LD_HEAD?=@rm -f $@
220 SYSTEM_LD?= ${_MKSHMSG} " link ${.CURDIR:T}/${.TARGET}"; \
221 ${_MKSHECHO}\
222 ${LD} -Map ${.TARGET}.map --cref ${LINKFLAGS} -o ${.TARGET} \
223 '$${SYSTEM_OBJ:${REMOVE_SWAP}}' '$${EXTRA_OBJ}' vers.o \
224 ${OBJS:M*swap${.TARGET}.o}; \
225 ${LD} -Map ${.TARGET}.map --cref ${LINKFLAGS} -o ${.TARGET} \
226 ${SYSTEM_OBJ:${REMOVE_SWAP}} ${EXTRA_OBJ} vers.o \
227 ${OBJS:M*swap${.TARGET}.o}
228
229 TEXTADDR?= ${LOADADDRESS} # backwards compatibility
230 LINKTEXT?= ${TEXTADDR:C/.+/-Ttext &/}
231 LINKDATA?= ${DATAADDR:C/.+/-Tdata &/}
232 ENTRYPOINT?= start
233 LINKENTRY?= ${ENTRYPOINT:C/.+/-e &/}
234 LINKFLAGS?= ${LINKFORMAT} ${LINKSCRIPT} ${LINKTEXT} ${LINKDATA} ${LINKENTRY} \
235 ${EXTRA_LINKFLAGS}
236
237 LINKFLAGS_DEBUG?= -X
238
239 SYSTEM_LD_TAIL?=@${TOOL_SED} '/const char sccs/!d;s/.*@(.)//;s/" "//;s/\\.*//' vers.c && \
240 ${SIZE} $@ && chmod 755 $@ && \
241 ${SYSTEM_CTFMERGE}
242 SYSTEM_LD_TAIL_DEBUG?=&& \
243 echo mv -f $@ $@.gdb && mv -f $@ $@.gdb && \
244 echo ${STRIP} ${STRIPFLAGS} -o $@ $@.gdb && \
245 ${STRIP} ${STRIPFLAGS} -o $@ $@.gdb
246 LINKFLAGS_NORMAL?= -S
247 STRIPFLAGS?= -g
248
249 DEBUG?=
250 .if !empty(DEBUG:M-g*)
251 SYSTEM_LD_TAIL+=${SYSTEM_LD_TAIL_DEBUG}
252 LINKFLAGS+= ${LINKFLAGS_DEBUG}
253 EXTRA_KERNELS+= ${KERNELS:@.KERNEL.@${.KERNEL.}.gdb@}
254 CTFFLAGS+= -g
255 TARGETSFX= .gdb
256 .elifndef PROF
257 LINKFLAGS+= ${LINKFLAGS_NORMAL}
258 .endif
259
260 SYSTEM_LD_HEAD+= ${SYSTEM_LD_HEAD_EXTRA}
261 SYSTEM_LD_TAIL_STAGE1= ${SYSTEM_LD_TAIL}
262 SYSTEM_LD_TAIL_STAGE2= ${SYSTEM_LD_TAIL}
263 .if defined(COPY_SYMTAB)
264 SYSTEM_LD_TAIL_STAGE2+= && echo ${DBSYM} $@ && ${DBSYM} $@
265 .if !empty(DEBUG:M-g)
266 SYSTEM_LD_TAIL_STAGE2+= && echo ${DBSYM} $@.gdb && ${DBSYM} $@.gdb
267 .endif
268 .endif
269 SYSTEM_LD_TAIL_STAGE2+= ${SYSTEM_LD_TAIL_EXTRA}
270
271 ##
272 ## (6) port independent targets and dependencies: assym.h, vers.o
273 ##
274
275 .if !defined(___USE_SUFFIX_RULES___)
276
277 # Generate list of *.o files to pass to ${LD}, preserving order.
278 # x/y/z/a.[csS] -> a.[csS]
279 # a.[csS] -> a.o
280 OBJS= ${ALLFILES:C|^.*/([^/]*\.[csS])$$|\1|:C|^(.*)\.[csS]$$|\1.o|}
281
282 CFILES= ${ALLFILES:M*.c}
283 SFILES= ${ALLFILES:M*.[sS]}
284 OFILES= ${ALLFILES:M*.o}
285 # absolute, generated (build directory), relative (under $S)
286 _CFILES=${CFILES:M/*} ${CFILES:N/*:N*/*} ${CFILES:N/*:M*/*:C|^|$S/|}
287 _SFILES=${SFILES:M/*} ${SFILES:N/*:N*/*} ${SFILES:N/*:M*/*:C|^|$S/|}
288 _MD_CFILES=${MD_CFILES}
289 _MD_SFILES=${MD_SFILES}
290 CSRCS= ${_MD_CFILES} ${_CFILES}
291 SSRCS= ${_MD_SFILES} ${_SFILES}
292 SRCS= ${CSRCS} ${SSRCS}
293
294 .else # ___USE_SUFFIX_RULES___
295 OBJS= ${ALLFILES:C|\.[csS]$$|.o|}
296 SRCS= ${ALLFILES:M*.[csS]}
297 .endif # ___USE_SUFFIX_RULES___
298
299 .if !defined(___USE_SUFFIX_RULES___)
300 .for _s in ${_CFILES}
301 .if !commands(${_s:T:R}.o)
302 ${_s:T:R}.o: ${_s}
303 ${NORMAL_C}
304 .endif
305 .endfor
306
307 .for _s in ${_SFILES}
308 .if !commands(${_s:T:R}.o)
309 ${_s:T:R}.o: ${_s}
310 ${NORMAL_S}
311 .endif
312 .endfor
313 .endif # !___USE_SUFFIX_RULES___
314
315 .include "${S}/conf/ldscript.mk"
316 .include "${S}/conf/assym.mk"
317 .include "${S}/conf/newvers.mk"
318 .include "${S}/dev/splash/splash.mk"
319 .include "${S}/conf/mdroot.mk"
320 .include "${S}/conf/lint.mk"
321 .include "${S}/conf/cscope.mk"
322 .include "${S}/conf/gdbinit.mk"
323 .include "${S}/conf/ssp.mk"
324 .include "${S}/conf/dts.mk"
325
326 ##
327 ## (7) misc targets: install, clean(dir), depend(all), lint, links, tags,
328 ## cscope, mkid
329 ##
330 ## Any ports that have other stuff to be cleaned up should fill in
331 ## EXTRA_CLEAN. Some ports may want different settings for
332 ## KERNLINTFLAGS, MKDEP_CFLAGS, or MKDEP_AFLAGS.
333 ##
334
335 ##
336 ## clean
337 ##
338
339 .if !target(__CLEANKERNEL)
340 __CLEANKERNEL: .USE
341 ${_MKMSG} "${.TARGET}ing the kernel objects"
342 rm -f ${KERNELS} *.map eddep tags *.[io] *.ko *.ln [a-z]*.s vers.c \
343 [Ee]rrs linterrs makelinks assym.h.tmp assym.h \
344 ${EXTRA_KERNELS} ${EXTRA_CLEAN}
345 .endif
346
347 .if !target(kernelnames)
348 kernelnames:
349 @echo "${KERNELS} ${EXTRA_KERNELS}"
350 .endif
351
352 .if !target(__CLEANDEPEND)
353 __CLEANDEPEND: .USE
354 echo .depend ${DEPS} | xargs rm -f --
355 .endif
356
357 # do not !target these, the kern and compat Makefiles augment them
358 cleandir distclean: __CLEANKERNEL __CLEANDEPEND
359 clean: __CLEANKERNEL
360 depend: .depend
361 dependall: depend .WAIT all
362
363 ##
364 ## depend
365 ##
366
367 .if !target(.depend)
368 MKDEP_AFLAGS?= ${AFLAGS}
369 MKDEP_CFLAGS?= ${CFLAGS}
370 .if !defined(___USE_SUFFIX_RULES___)
371 DEPS+= ${SRCS:T:R:S/$/.d/g}
372 .else
373 DEPS+= ${SRCS:R:S/$/.d/g}
374 .endif
375
376 .if !defined(___USE_SUFFIX_RULES___)
377 .for _s in ${SSRCS}
378 .if !commands(${_s:T:R}.d)
379 ${_s:T:R}.d: ${_s}
380 ${_MKTARGET_CREATE}
381 ${MKDEP} -f ${.TARGET}.tmp -- ${MKDEP_AFLAGS} \
382 ${CPPFLAGS} ${CPPFLAGS.${_s:T}} ${_s}
383 mv -f ${.TARGET}.tmp ${.TARGET}
384 .endif
385 .endfor
386
387 .for _s in ${CSRCS}
388 .if !commands(${_s:T:R}.d)
389 ${_s:T:R}.d: ${_s}
390 ${_MKTARGET_CREATE}
391 ${MKDEP} -f ${.TARGET}.tmp -- ${MKDEP_CFLAGS} \
392 ${CPPFLAGS} ${CPPFLAGS.${_s:T}} ${_s}
393 mv -f ${.TARGET}.tmp ${.TARGET}
394 .endif
395 .endfor
396 .endif # !___USE_SUFFIX_RULES___
397
398 .depend: ${DEPS:O}
399 ${_MKTARGET_CREATE}
400 echo "${.ALLSRC}" | ${MKDEP} -D
401 .endif
402
403 ##
404 ## install
405 ##
406
407 # List of kernel images that will be installed into the root file system.
408 # Some platforms may need to install more than one (e.g. a netbsd.aout file
409 # to be loaded directly by the firmware), so this can be overriden by them.
410 KERNIMAGES?= netbsd
411
412 .if !target(install)
413 # The install target can be redefined by putting a
414 # install-kernel-${MACHINE_NAME} target into /etc/mk.conf
415 MACHINE_NAME!= uname -n
416 install: install-kernel-${MACHINE_NAME}
417 .if !target(install-kernel-${MACHINE_NAME})
418 install-kernel-${MACHINE_NAME}:
419 .for _K in ${KERNIMAGES}
420 rm -f ${DESTDIR}/o${_K}
421 ln ${DESTDIR}/${_K} ${DESTDIR}/o${_K}
422 cp ${_K} ${DESTDIR}/n${_K}
423 mv ${DESTDIR}/n${_K} ${DESTDIR}/${_K}
424 .endfor
425 .endif
426 .endif
427
428 ##
429 ## the kernel
430 ##
431
432 AFLAGS+= ${AOPTS.${.IMPSRC:T}}
433 CFLAGS+= ${COPTS.${.IMPSRC:T}} ${CPUFLAGS.${.IMPSRC:T}}
434 CPPFLAGS+= ${CPPFLAGS.${.IMPSRC:T}}
435 CWARNFLAGS+= ${CWARNFLAGS.${.IMPSRC:T}}
436
437 .MAIN: all
438 all: .gdbinit
439 .for k in ${KERNELS}
440 all: .WAIT ${k}
441 ${k}: ${SYSTEM_DEP:O} swap${k}.o vers.o build_kernel
442 .endfor
443
444 .if !defined(COPY_SYMTAB)
445 build_kernel: .USE
446 ${SYSTEM_LD_HEAD}
447 ${SYSTEM_LD}
448 ${SYSTEM_LD_TAIL_STAGE2}
449 .else
450 .for k in ${KERNELS}
451 ${k}: $S/kern/kern_ksyms_buf.c
452 .endfor
453 build_kernel: .USE
454 ${CC} ${CFLAGS} ${CPPFLAGS} \
455 -c $S/kern/kern_ksyms_buf.c -o kern_ksyms_buf.o
456 ${SYSTEM_LD_HEAD}
457 ${SYSTEM_LD} kern_ksyms_buf.o
458 ${SYSTEM_LD_TAIL_STAGE1}
459 ${CC} ${CFLAGS} ${CPPFLAGS} \
460 -DSYMTAB_SPACE=$$(${DBSYM} -P ${.TARGET}${TARGETSFX}) \
461 -c $S/kern/kern_ksyms_buf.c -o kern_ksyms_buf_real.o
462 ${SYSTEM_LD_HEAD}
463 ${SYSTEM_LD} kern_ksyms_buf_real.o
464 ${SYSTEM_LD_TAIL_STAGE2}
465 .endif
466
467 .include <bsd.files.mk>
468 .include <bsd.clang-analyze.mk>
469
470 ##
471 ## suffix rules
472 ##
473
474 .if defined(___USE_SUFFIX_RULES___)
475 .SUFFIXES: .s .d
476 .s.d:
477 ${_MKTARGET_CREATE}
478 ${MKDEP} -f $@.tmp -- ${MKDEP_AFLAGS} ${CPPFLAGS} ${CPPFLAGS.${<:T}} $<
479 mv -f $@.tmp $@
480
481 .SUFFIXES: .S .d
482 .S.d:
483 ${_MKTARGET_CREATE}
484 ${MKDEP} -f $@.tmp -- ${MKDEP_AFLAGS} ${CPPFLAGS} ${CPPFLAGS.${<:T}} $<
485 mv -f $@.tmp $@
486
487 .SUFFIXES: .c .d
488 .c.d:
489 ${_MKTARGET_CREATE}
490 ${MKDEP} -f $@.tmp -- ${MKDEP_CFLAGS} ${CPPFLAGS} ${CPPFLAGS.${<:T}} $<
491 mv -f $@.tmp $@
492
493 .SUFFIXES: .c .o .go .po
494 .c.o:
495 @${_MKSHMSG} "compile ${.CURDIR:T}/${.TARGET}"
496 @${_MKSHECHO} ${KCOMPILE.c}
497 @${KCOMPILE.c}
498 @${COMPILE_CTFCONVERT}
499 .c.go:
500 @${_MKSHMSG} "compile ${.CURDIR:T}/${.TARGET}"
501 @${_MKSHECHO} ${KCOMPILE.c} -g
502 @${KCOMPILE.c} -g
503 @${COMPILE_CTFCONVERT}
504 .c.po:
505 @${_MKSHMSG} "compile ${.CURDIR:T}/${.TARGET}"
506 @${_MKSHECHO} ${KCOMPILE.c} -pg
507 @${KCOMPILE.c} -pg
508 @${COMPILE_CTFCONVERT}
509
510 .SUFFIXES: .s .o .go .po
511 .s.o:
512 @${_MKSHMSG} "compile ${.CURDIR:T}/${.TARGET}"
513 @${_MKSHECHO} ${KCOMPILE.s}
514 @${KCOMPILE.s}
515 .s.go:
516 @${_MKSHMSG} "compile ${.CURDIR:T}/${.TARGET}"
517 @${_MKSHECHO} ${KCOMPILE.s} -g
518 @${KCOMPILE.s} -g
519 .s.po:
520 @${_MKSHMSG} "compile ${.CURDIR:T}/${.TARGET}"
521 @${_MKSHECHO} ${KCOMPILE.s} -pg
522 @${KCOMPILE.s} -pg
523
524 .S.o:
525 @${_MKSHMSG} "compile ${.CURDIR:T}/${.TARGET}"
526 @${_MKSHECHO} ${KCOMPILE.s}
527 @${KCOMPILE.s}
528 .S.go:
529 @${_MKSHMSG} "compile ${.CURDIR:T}/${.TARGET}"
530 @${_MKSHECHO} ${KCOMPILE.s} -g
531 @${KCOMPILE.s} -g
532 .S.po:
533 @${_MKSHMSG} "compile ${.CURDIR:T}/${.TARGET}"
534 @${_MKSHECHO} ${KCOMPILE.s} -pg
535 @${KCOMPILE.s} -pg
536 .endif # ___USE_SUFFIX_RULES___
537
538 ##
539 ## the end
540 ##
541