Makefile.kern.inc revision 1.250.2.2 1 # $NetBSD: Makefile.kern.inc,v 1.250.2.2 2017/03/20 06:57:26 pgoyette 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
325 ##
326 ## (7) misc targets: install, clean(dir), depend(all), lint, links, tags,
327 ## cscope, mkid
328 ##
329 ## Any ports that have other stuff to be cleaned up should fill in
330 ## EXTRA_CLEAN. Some ports may want different settings for
331 ## KERNLINTFLAGS, MKDEP_CFLAGS, or MKDEP_AFLAGS.
332 ##
333
334 ##
335 ## clean
336 ##
337
338 .if !target(__CLEANKERNEL)
339 __CLEANKERNEL: .USE
340 ${_MKMSG} "${.TARGET}ing the kernel objects"
341 rm -f ${KERNELS} *.map eddep tags *.[io] *.ko *.ln [a-z]*.s vers.c \
342 [Ee]rrs linterrs makelinks assym.h.tmp assym.h \
343 ${EXTRA_KERNELS} ${EXTRA_CLEAN}
344 .endif
345
346 .if !target(kernelnames)
347 kernelnames:
348 @echo "${KERNELS} ${EXTRA_KERNELS}"
349 .endif
350
351 .if !target(__CLEANDEPEND)
352 __CLEANDEPEND: .USE
353 echo .depend ${DEPS} | xargs rm -f --
354 .endif
355
356 # do not !target these, the kern and compat Makefiles augment them
357 cleandir distclean: __CLEANKERNEL __CLEANDEPEND
358 clean: __CLEANKERNEL
359 depend: .depend
360 dependall: depend .WAIT all
361
362 ##
363 ## depend
364 ##
365
366 .if !target(.depend)
367 MKDEP_AFLAGS?= ${AFLAGS}
368 MKDEP_CFLAGS?= ${CFLAGS}
369 .if !defined(___USE_SUFFIX_RULES___)
370 DEPS+= ${SRCS:T:R:S/$/.d/g}
371 .else
372 DEPS+= ${SRCS:R:S/$/.d/g}
373 .endif
374
375 .if !defined(___USE_SUFFIX_RULES___)
376 .for _s in ${SSRCS}
377 .if !commands(${_s:T:R}.d)
378 ${_s:T:R}.d: ${_s}
379 ${_MKTARGET_CREATE}
380 ${MKDEP} -f ${.TARGET}.tmp -- ${MKDEP_AFLAGS} \
381 ${CPPFLAGS} ${CPPFLAGS.${_s:T}} ${_s}
382 mv -f ${.TARGET}.tmp ${.TARGET}
383 .endif
384 .endfor
385
386 .for _s in ${CSRCS}
387 .if !commands(${_s:T:R}.d)
388 ${_s:T:R}.d: ${_s}
389 ${_MKTARGET_CREATE}
390 ${MKDEP} -f ${.TARGET}.tmp -- ${MKDEP_CFLAGS} \
391 ${CPPFLAGS} ${CPPFLAGS.${_s:T}} ${_s}
392 mv -f ${.TARGET}.tmp ${.TARGET}
393 .endif
394 .endfor
395 .endif # !___USE_SUFFIX_RULES___
396
397 .depend: ${DEPS:O}
398 ${_MKTARGET_CREATE}
399 echo "${.ALLSRC}" | ${MKDEP} -D
400 .endif
401
402 ##
403 ## install
404 ##
405
406 # List of kernel images that will be installed into the root file system.
407 # Some platforms may need to install more than one (e.g. a netbsd.aout file
408 # to be loaded directly by the firmware), so this can be overriden by them.
409 KERNIMAGES?= netbsd
410
411 .if !target(install)
412 # The install target can be redefined by putting a
413 # install-kernel-${MACHINE_NAME} target into /etc/mk.conf
414 MACHINE_NAME!= uname -n
415 install: install-kernel-${MACHINE_NAME}
416 .if !target(install-kernel-${MACHINE_NAME})
417 install-kernel-${MACHINE_NAME}:
418 .for _K in ${KERNIMAGES}
419 rm -f ${DESTDIR}/o${_K}
420 ln ${DESTDIR}/${_K} ${DESTDIR}/o${_K}
421 cp ${_K} ${DESTDIR}/n${_K}
422 mv ${DESTDIR}/n${_K} ${DESTDIR}/${_K}
423 .endfor
424 .endif
425 .endif
426
427 ##
428 ## the kernel
429 ##
430
431 AFLAGS+= ${AOPTS.${.IMPSRC:T}}
432 CFLAGS+= ${COPTS.${.IMPSRC:T}} ${CPUFLAGS.${.IMPSRC:T}}
433 CPPFLAGS+= ${CPPFLAGS.${.IMPSRC:T}}
434 CWARNFLAGS+= ${CWARNFLAGS.${.IMPSRC:T}}
435
436 .MAIN: all
437 all: .gdbinit
438 .for k in ${KERNELS}
439 all: .WAIT ${k}
440 ${k}: ${SYSTEM_DEP:O} swap${k}.o vers.o build_kernel
441 .endfor
442
443 .if !defined(COPY_SYMTAB)
444 build_kernel: .USE
445 ${SYSTEM_LD_HEAD}
446 ${SYSTEM_LD}
447 ${SYSTEM_LD_TAIL_STAGE2}
448 .else
449 .for k in ${KERNELS}
450 ${k}: $S/kern/kern_ksyms_buf.c
451 .endfor
452 build_kernel: .USE
453 ${CC} ${CFLAGS} ${CPPFLAGS} \
454 -c $S/kern/kern_ksyms_buf.c -o kern_ksyms_buf.o
455 ${SYSTEM_LD_HEAD}
456 ${SYSTEM_LD} kern_ksyms_buf.o
457 ${SYSTEM_LD_TAIL_STAGE1}
458 ${CC} ${CFLAGS} ${CPPFLAGS} \
459 -DSYMTAB_SPACE=$$(${DBSYM} -P ${.TARGET}${TARGETSFX}) \
460 -c $S/kern/kern_ksyms_buf.c -o kern_ksyms_buf_real.o
461 ${SYSTEM_LD_HEAD}
462 ${SYSTEM_LD} kern_ksyms_buf_real.o
463 ${SYSTEM_LD_TAIL_STAGE2}
464 .endif
465
466 .include <bsd.files.mk>
467 .include <bsd.clang-analyze.mk>
468
469 ##
470 ## suffix rules
471 ##
472
473 .if defined(___USE_SUFFIX_RULES___)
474 .SUFFIXES: .s .d
475 .s.d:
476 ${_MKTARGET_CREATE}
477 ${MKDEP} -f $@.tmp -- ${MKDEP_AFLAGS} ${CPPFLAGS} ${CPPFLAGS.${<:T}} $<
478 mv -f $@.tmp $@
479
480 .SUFFIXES: .S .d
481 .S.d:
482 ${_MKTARGET_CREATE}
483 ${MKDEP} -f $@.tmp -- ${MKDEP_AFLAGS} ${CPPFLAGS} ${CPPFLAGS.${<:T}} $<
484 mv -f $@.tmp $@
485
486 .SUFFIXES: .c .d
487 .c.d:
488 ${_MKTARGET_CREATE}
489 ${MKDEP} -f $@.tmp -- ${MKDEP_CFLAGS} ${CPPFLAGS} ${CPPFLAGS.${<:T}} $<
490 mv -f $@.tmp $@
491
492 .SUFFIXES: .c .o .go .po
493 .c.o:
494 @${_MKSHMSG} "compile ${.CURDIR:T}/${.TARGET}"
495 @${_MKSHECHO} ${KCOMPILE.c}
496 @${KCOMPILE.c}
497 @${COMPILE_CTFCONVERT}
498 .c.go:
499 @${_MKSHMSG} "compile ${.CURDIR:T}/${.TARGET}"
500 @${_MKSHECHO} ${KCOMPILE.c} -g
501 @${KCOMPILE.c} -g
502 @${COMPILE_CTFCONVERT}
503 .c.po:
504 @${_MKSHMSG} "compile ${.CURDIR:T}/${.TARGET}"
505 @${_MKSHECHO} ${KCOMPILE.c} -pg
506 @${KCOMPILE.c} -pg
507 @${COMPILE_CTFCONVERT}
508
509 .SUFFIXES: .s .o .go .po
510 .s.o:
511 @${_MKSHMSG} "compile ${.CURDIR:T}/${.TARGET}"
512 @${_MKSHECHO} ${KCOMPILE.s}
513 @${KCOMPILE.s}
514 .s.go:
515 @${_MKSHMSG} "compile ${.CURDIR:T}/${.TARGET}"
516 @${_MKSHECHO} ${KCOMPILE.s} -g
517 @${KCOMPILE.s} -g
518 .s.po:
519 @${_MKSHMSG} "compile ${.CURDIR:T}/${.TARGET}"
520 @${_MKSHECHO} ${KCOMPILE.s} -pg
521 @${KCOMPILE.s} -pg
522
523 .S.o:
524 @${_MKSHMSG} "compile ${.CURDIR:T}/${.TARGET}"
525 @${_MKSHECHO} ${KCOMPILE.s}
526 @${KCOMPILE.s}
527 .S.go:
528 @${_MKSHMSG} "compile ${.CURDIR:T}/${.TARGET}"
529 @${_MKSHECHO} ${KCOMPILE.s} -g
530 @${KCOMPILE.s} -g
531 .S.po:
532 @${_MKSHMSG} "compile ${.CURDIR:T}/${.TARGET}"
533 @${_MKSHECHO} ${KCOMPILE.s} -pg
534 @${KCOMPILE.s} -pg
535 .endif # ___USE_SUFFIX_RULES___
536
537 ##
538 ## the end
539 ##
540