Makefile.kern.inc revision 1.183.2.3 1 # $NetBSD: Makefile.kern.inc,v 1.183.2.3 2015/12/27 12:09:48 skrll 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
91
92 CWARNFLAGS.ah_regdomain.c= ${${ACTIVE_CC} == "clang":? \
93 -Wno-shift-count-negative -Wno-shift-count-overflow:}
94
95 CWARNFLAGS.ioconf.c= ${${ACTIVE_CC} == "clang":? -Wno-unused-const-variable :}
96
97 CFLAGS+= -ffreestanding -fno-zero-initialized-in-bss
98 CFLAGS+= ${DEBUG} ${COPTS}
99 AFLAGS+= -D_LOCORE -Wa,--fatal-warnings
100
101 # XXX
102 .if defined(HAVE_GCC) || defined(HAVE_LLVM)
103 CFLAGS+= -fno-strict-aliasing
104 CFLAGS+= -fno-common
105 .endif
106
107 # Use the per-source COPTS variables to add -g to just those
108 # files that match the shell patterns given in ${DEBUGLIST}
109 #
110 .for i in ${DEBUGLIST}
111 . for j in ${ALLFILES:M*.c:T:M$i.c}
112 COPTS.${j}+=-g
113 . endfor
114 .endfor
115
116 # Always compile debugsyms.c with debug information.
117 # This allows gdb to use type informations.
118 #
119 COPTS.debugsyms.c+= -g
120
121 # Add CTF sections for DTrace
122 .if defined(CTFCONVERT)
123 COMPILE_CTFCONVERT= ${_MKSHECHO}\
124 ${CTFCONVERT} ${CTFFLAGS} ${.TARGET} && \
125 ${CTFCONVERT} ${CTFFLAGS} ${.TARGET}
126 .else
127 COMPILE_CTFCONVERT= ${_MKSHNOECHO}
128 .endif
129
130 KCOMPILE.c= ${CC} ${COPTS.${<:T}} ${CFLAGS} ${CPPFLAGS} -c $< -o $@
131 KCOMPILE.s= ${CC} ${AFLAGS} ${AFLAGS.${<:T}} ${CPPFLAGS} -c $< -o $@
132 KLINK.o= ${LD} -r ${LINKFORMAT} -Map=${.TARGET}.map -o ${.TARGET} ${.ALLSRC}
133
134 # compile rules: rules are named ${TYPE}_${SUFFIX} where TYPE is NORMAL or
135 # NOPROF and SUFFIX is the file suffix, capitalized (e.g. C for a .c file).
136 NORMAL_C?= @${_MKSHMSG} "compile ${.CURDIR:T}/${.TARGET}" && \
137 ${_MKSHECHO} ${KCOMPILE.c} ${PROF} && \
138 ${KCOMPILE.c} ${PROF} && \
139 ${COMPILE_CTFCONVERT}
140 NOPROF_C?= @${_MKSHMSG} "compile ${.CURDIR:T}/${.TARGET}" && \
141 ${_MKSHECHO} ${KCOMPILE.c} && \
142 ${KCOMPILE.c} && \
143 ${COMPILE_CTFCONVERT}
144 NORMAL_S?= @${_MKSHMSG} "compile ${.CURDIR:T}/${.TARGET}" && \
145 ${_MKSHECHO} ${KCOMPILE.s} && \
146 ${KCOMPILE.s}
147
148 # link rules:
149 LINK_O?= @${_MKSHMSG} " link ${.CURDIR:T}/${.TARGET}" && \
150 ${_MKSHECHO} ${KLINK.o} && \
151 ${KLINK.o}
152
153 ##
154 ## (3) libkern and compat
155 ##
156 ## Set KERN_AS in the port Makefile to "obj" or "library". The
157 ## default is "library", as documented in $S/lib/libkern/Makefile.inc.
158 ##
159
160 ### find out what to use for libkern
161 .include "$S/lib/libkern/Makefile.inc"
162 .ifndef PROF
163 LIBKERN?= ${KERNLIB}
164 .else
165 LIBKERN?= ${KERNLIB_PROF}
166 .endif
167
168 LIBKERNLN?= ${KERNLIBLN}
169
170 ### find out what to use for libcompat
171 .include "$S/compat/common/Makefile.inc"
172 .ifndef PROF
173 SYSLIBCOMPAT?= ${COMPATLIB}
174 .else
175 SYSLIBCOMPAT?= ${COMPATLIB_PROF}
176 .endif
177
178 SYSLIBCOMPATLN?= ${COMPATLIBLN}
179
180 ##
181 ## (4) local objects, compile rules, and dependencies
182 ##
183 ## Each port should have a corresponding section with settings for
184 ## MD_CFILES, MD_SFILES, and MD_OBJS, along with build rules for same.
185 ##
186
187 .if !defined(___USE_SUFFIX_RULES___)
188 _MD_OBJS= ${MD_OBJS:T}
189 .else
190 _MD_OBJS= ${MD_OBJS}
191 .endif
192
193 ##
194 ## (5) link settings
195 ##
196 ## TEXTADDR (or LOADADDRESS), LINKFORMAT, LINKSCRIPT, and any EXTRA_LINKFLAGS
197 ## must be set in the port's Makefile. The port specific definitions for
198 ## LINKFLAGS_NORMAL and LINKFLAGS_DEBUG will added to the LINKFLAGS
199 ## depending on the value of DEBUG.
200 ##
201 # load lines for config "xxx" will be emitted as:
202 # xxx: ${SYSTEM_DEP} swapxxxx.o vers.o build_kernel
203
204 SYSTEM_LIB= ${MD_LIBS} ${SYSLIBCOMPAT} ${LIBKERN}
205 SYSTEM_OBJ?= ${_MD_OBJS} ${OBJS} ${SYSTEM_LIB}
206 SYSTEM_DEP+= Makefile ${SYSTEM_OBJ:O}
207 .if defined(CTFMERGE)
208 SYSTEM_CTFMERGE= ${CTFMERGE} ${CTFMFLAGS} -o ${.TARGET} ${SYSTEM_OBJ} ${EXTRA_OBJ} vers.o
209 .else
210 SYSTEM_CTFMERGE= ${_MKSHECHO}
211 .endif
212 SYSTEM_LD_HEAD?=@rm -f $@
213 SYSTEM_LD?= ${_MKSHMSG} " link ${.CURDIR:T}/${.TARGET}"; \
214 ${_MKSHECHO}\
215 ${LD} -Map ${.TARGET}.map --cref ${LINKFLAGS} -o ${.TARGET} \
216 '$${SYSTEM_OBJ:N*swap*netbsd*}' '$${EXTRA_OBJ}' vers.o \
217 ${OBJS:M*swap${.TARGET}.o}; \
218 ${LD} -Map ${.TARGET}.map --cref ${LINKFLAGS} -o ${.TARGET} \
219 ${SYSTEM_OBJ:N*swap*netbsd*} ${EXTRA_OBJ} vers.o \
220 ${OBJS:M*swap${.TARGET}.o}
221
222 TEXTADDR?= ${LOADADDRESS} # backwards compatibility
223 LINKTEXT?= ${TEXTADDR:C/.+/-Ttext &/}
224 LINKDATA?= ${DATAADDR:C/.+/-Tdata &/}
225 ENTRYPOINT?= start
226 LINKENTRY?= ${ENTRYPOINT:C/.+/-e &/}
227 LINKFLAGS?= ${LINKFORMAT} ${LINKSCRIPT} ${LINKTEXT} ${LINKDATA} ${LINKENTRY} \
228 ${EXTRA_LINKFLAGS}
229
230 LINKFLAGS_DEBUG?= -X
231
232 SYSTEM_LD_TAIL?=@${TOOL_SED} '/const char sccs/!d;s/.*@(.)//;s/" "//;s/\\.*//' vers.c; \
233 ${SIZE} $@; chmod 755 $@; \
234 ${SYSTEM_CTFMERGE}
235 SYSTEM_LD_TAIL_DEBUG?=; \
236 echo mv -f $@ $@.gdb; mv -f $@ $@.gdb; \
237 echo ${STRIP} ${STRIPFLAGS} -o $@ $@.gdb; \
238 ${STRIP} ${STRIPFLAGS} -o $@ $@.gdb
239 LINKFLAGS_NORMAL?= -S
240 STRIPFLAGS?= -g
241
242 DEBUG?=
243 .if !empty(DEBUG:M-g*)
244 SYSTEM_LD_TAIL+=${SYSTEM_LD_TAIL_DEBUG}
245 LINKFLAGS+= ${LINKFLAGS_DEBUG}
246 EXTRA_KERNELS+= ${KERNELS:@.KERNEL.@${.KERNEL.}.gdb@}
247 CTFFLAGS+= -g
248 TARGETSFX= .gdb
249 .elifndef PROF
250 LINKFLAGS+= ${LINKFLAGS_NORMAL}
251 .endif
252
253 SYSTEM_LD_HEAD+= ${SYSTEM_LD_HEAD_EXTRA}
254 SYSTEM_LD_TAIL_STAGE1= ${SYSTEM_LD_TAIL}
255 SYSTEM_LD_TAIL_STAGE2= ${SYSTEM_LD_TAIL}
256 .if defined(COPY_SYMTAB)
257 SYSTEM_LD_TAIL_STAGE2+= ; echo ${DBSYM} $@; ${DBSYM} $@
258 .if !empty(DEBUG:M-g)
259 SYSTEM_LD_TAIL_STAGE2+= ; echo ${DBSYM} $@.gdb; ${DBSYM} $@.gdb
260 .endif
261 .endif
262 SYSTEM_LD_TAIL_STAGE2+= ${SYSTEM_LD_TAIL_EXTRA}
263
264 ##
265 ## (6) port independent targets and dependencies: assym.h, vers.o
266 ##
267
268 .if !defined(___USE_SUFFIX_RULES___)
269
270 # Generate list of *.o files to pass to ${LD}, preserving order.
271 # x/y/z/a.[csS] -> a.[csS]
272 # a.[csS] -> a.o
273 OBJS= ${ALLFILES:C|^.*/([^/]*\.[csS])$$|\1|:C|^(.*)\.[csS]$$|\1.o|}
274
275 CFILES= ${ALLFILES:M*.c}
276 SFILES= ${ALLFILES:M*.[sS]}
277 OFILES= ${ALLFILES:M*.o}
278 # absolute, generated (build directory), relative (under $S)
279 _CFILES=${CFILES:M/*} ${CFILES:N/*:N*/*} ${CFILES:N/*:M*/*:C|^|$S/|}
280 _SFILES=${SFILES:M/*} ${SFILES:N/*:N*/*} ${SFILES:N/*:M*/*:C|^|$S/|}
281 _MD_CFILES=${MD_CFILES}
282 _MD_SFILES=${MD_SFILES}
283 CSRCS= ${_MD_CFILES} ${_CFILES}
284 SSRCS= ${_MD_SFILES} ${_SFILES}
285 SRCS= ${CSRCS} ${SSRCS}
286
287 .else # ___USE_SUFFIX_RULES___
288 OBJS= ${ALLFILES:C|\.[csS]$$|.o|}
289 SRCS= ${ALLFILES:M*.[csS]}
290 .endif # ___USE_SUFFIX_RULES___
291
292 .if !defined(___USE_SUFFIX_RULES___)
293 .for _s in ${_CFILES}
294 .if !commands(${_s:T:R}.o)
295 ${_s:T:R}.o: ${_s}
296 ${NORMAL_C}
297 .endif
298 .endfor
299
300 .for _s in ${_SFILES}
301 .if !commands(${_s:T:R}.o)
302 ${_s:T:R}.o: ${_s}
303 ${NORMAL_S}
304 .endif
305 .endfor
306 .endif # !___USE_SUFFIX_RULES___
307
308 .include "${S}/conf/ldscript.mk"
309 .include "${S}/conf/assym.mk"
310 .include "${S}/conf/newvers.mk"
311 .include "${S}/dev/splash/splash.mk"
312 .include "${S}/conf/mdroot.mk"
313 .include "${S}/conf/lint.mk"
314 .include "${S}/conf/cscope.mk"
315 .include "${S}/conf/gdbinit.mk"
316 .include "${S}/conf/ssp.mk"
317
318 ##
319 ## (7) misc targets: install, clean(dir), depend(all), lint, links, tags,
320 ## cscope, mkid
321 ##
322 ## Any ports that have other stuff to be cleaned up should fill in
323 ## EXTRA_CLEAN. Some ports may want different settings for
324 ## KERNLINTFLAGS, MKDEP_CFLAGS, or MKDEP_AFLAGS.
325 ##
326
327 ##
328 ## clean
329 ##
330
331 .if !target(__CLEANKERNEL)
332 __CLEANKERNEL: .USE
333 ${_MKMSG} "${.TARGET}ing the kernel objects"
334 rm -f ${KERNELS} *.map eddep tags *.[io] *.ko *.ln [a-z]*.s vers.c \
335 [Ee]rrs linterrs makelinks assym.h.tmp assym.h \
336 ${EXTRA_KERNELS} ${EXTRA_CLEAN}
337 .endif
338
339 .if !target(kernelnames)
340 kernelnames:
341 @echo "${KERNELS} ${EXTRA_KERNELS}"
342 .endif
343
344 .if !target(__CLEANDEPEND)
345 __CLEANDEPEND: .USE
346 echo .depend ${DEPS} | xargs rm -f --
347 .endif
348
349 # do not !target these, the kern and compat Makefiles augment them
350 cleandir distclean: __CLEANKERNEL __CLEANDEPEND
351 clean: __CLEANKERNEL
352 depend: .depend
353 dependall: depend .WAIT all
354
355 ##
356 ## depend
357 ##
358
359 .if !target(.depend)
360 MKDEP_AFLAGS?= ${AFLAGS}
361 MKDEP_CFLAGS?= ${CFLAGS}
362 .if !defined(___USE_SUFFIX_RULES___)
363 DEPS+= ${SRCS:T:R:S/$/.d/g}
364 .else
365 DEPS+= ${SRCS:R:S/$/.d/g}
366 .endif
367
368 .if !defined(___USE_SUFFIX_RULES___)
369 .for _s in ${SSRCS}
370 .if !commands(${_s:T:R}.d)
371 ${_s:T:R}.d: ${_s}
372 ${_MKTARGET_CREATE}
373 ${MKDEP} -f ${.TARGET}.tmp -- ${MKDEP_AFLAGS} \
374 ${CPPFLAGS} ${CPPFLAGS.${_s:T}} ${_s}
375 mv -f ${.TARGET}.tmp ${.TARGET}
376 .endif
377 .endfor
378
379 .for _s in ${CSRCS}
380 .if !commands(${_s:T:R}.d)
381 ${_s:T:R}.d: ${_s}
382 ${_MKTARGET_CREATE}
383 ${MKDEP} -f ${.TARGET}.tmp -- ${MKDEP_CFLAGS} \
384 ${CPPFLAGS} ${CPPFLAGS.${_s:T}} ${_s}
385 mv -f ${.TARGET}.tmp ${.TARGET}
386 .endif
387 .endfor
388 .endif # !___USE_SUFFIX_RULES___
389
390 .depend: ${DEPS:O}
391 ${_MKTARGET_CREATE}
392 echo "${.ALLSRC}" | ${MKDEP} -D
393 .endif
394
395 ##
396 ## install
397 ##
398
399 # List of kernel images that will be installed into the root file system.
400 # Some platforms may need to install more than one (e.g. a netbsd.aout file
401 # to be loaded directly by the firmware), so this can be overriden by them.
402 KERNIMAGES?= netbsd
403
404 .if !target(install)
405 # The install target can be redefined by putting a
406 # install-kernel-${MACHINE_NAME} target into /etc/mk.conf
407 MACHINE_NAME!= uname -n
408 install: install-kernel-${MACHINE_NAME}
409 .if !target(install-kernel-${MACHINE_NAME})
410 install-kernel-${MACHINE_NAME}:
411 .for _K in ${KERNIMAGES}
412 rm -f ${DESTDIR}/o${_K}
413 ln ${DESTDIR}/${_K} ${DESTDIR}/o${_K}
414 cp ${_K} ${DESTDIR}/n${_K}
415 mv ${DESTDIR}/n${_K} ${DESTDIR}/${_K}
416 .endfor
417 .endif
418 .endif
419
420 ##
421 ## the kernel
422 ##
423
424 AFLAGS+= ${AOPTS.${.IMPSRC:T}}
425 CFLAGS+= ${COPTS.${.IMPSRC:T}} ${CPUFLAGS.${.IMPSRC:T}}
426 CPPFLAGS+= ${CPPFLAGS.${.IMPSRC:T}}
427 CWARNFLAGS+= ${CWARNFLAGS.${.IMPSRC:T}}
428
429 .MAIN: all
430 all: .gdbinit
431 .for k in ${KERNELS}
432 all: .WAIT ${k}
433 ${k}: ${SYSTEM_DEP:O} swap${k}.o vers.o build_kernel
434 .endfor
435
436 .if !defined(COPY_SYMTAB)
437 build_kernel: .USE
438 ${SYSTEM_LD_HEAD}
439 ${SYSTEM_LD}
440 ${SYSTEM_LD_TAIL_STAGE2}
441 .else
442 .for k in ${KERNELS}
443 ${k}: $S/kern/kern_ksyms_buf.c
444 .endfor
445 build_kernel: .USE
446 ${CC} ${CFLAGS} ${CPPFLAGS} \
447 -c $S/kern/kern_ksyms_buf.c -o kern_ksyms_buf.o
448 ${SYSTEM_LD_HEAD}
449 ${SYSTEM_LD} kern_ksyms_buf.o
450 ${SYSTEM_LD_TAIL_STAGE1}
451 ${CC} ${CFLAGS} ${CPPFLAGS} \
452 -DSYMTAB_SPACE=$$(${DBSYM} -P ${.TARGET}${TARGETSFX}) \
453 -c $S/kern/kern_ksyms_buf.c -o kern_ksyms_buf_real.o
454 ${SYSTEM_LD_HEAD}
455 ${SYSTEM_LD} kern_ksyms_buf_real.o
456 ${SYSTEM_LD_TAIL_STAGE2}
457 .endif
458
459 .include <bsd.files.mk>
460 .include <bsd.clang-analyze.mk>
461
462 ##
463 ## suffix rules
464 ##
465
466 .if defined(___USE_SUFFIX_RULES___)
467 .SUFFIXES: .s .d
468 .s.d:
469 ${_MKTARGET_CREATE}
470 ${MKDEP} -f $@.tmp -- ${MKDEP_AFLAGS} ${CPPFLAGS} ${CPPFLAGS.${<:T}} $<
471 mv -f $@.tmp $@
472
473 .SUFFIXES: .S .d
474 .S.d:
475 ${_MKTARGET_CREATE}
476 ${MKDEP} -f $@.tmp -- ${MKDEP_AFLAGS} ${CPPFLAGS} ${CPPFLAGS.${<:T}} $<
477 mv -f $@.tmp $@
478
479 .SUFFIXES: .c .d
480 .c.d:
481 ${_MKTARGET_CREATE}
482 ${MKDEP} -f $@.tmp -- ${MKDEP_CFLAGS} ${CPPFLAGS} ${CPPFLAGS.${<:T}} $<
483 mv -f $@.tmp $@
484
485 .SUFFIXES: .c .o .go .po
486 .c.o:
487 @${_MKSHMSG} "compile ${.CURDIR:T}/${.TARGET}"
488 @${_MKSHECHO} ${KCOMPILE.c}
489 @${KCOMPILE.c}
490 @${COMPILE_CTFCONVERT}
491 .c.go:
492 @${_MKSHMSG} "compile ${.CURDIR:T}/${.TARGET}"
493 @${_MKSHECHO} ${KCOMPILE.c} -g
494 @${KCOMPILE.c} -g
495 @${COMPILE_CTFCONVERT}
496 .c.po:
497 @${_MKSHMSG} "compile ${.CURDIR:T}/${.TARGET}"
498 @${_MKSHECHO} ${KCOMPILE.c} -pg
499 @${KCOMPILE.c} -pg
500 @${COMPILE_CTFCONVERT}
501
502 .SUFFIXES: .s .o .go .po
503 .s.o:
504 @${_MKSHMSG} "compile ${.CURDIR:T}/${.TARGET}"
505 @${_MKSHECHO} ${KCOMPILE.s}
506 @${KCOMPILE.s}
507 .s.go:
508 @${_MKSHMSG} "compile ${.CURDIR:T}/${.TARGET}"
509 @${_MKSHECHO} ${KCOMPILE.s} -g
510 @${KCOMPILE.s} -g
511 .s.po:
512 @${_MKSHMSG} "compile ${.CURDIR:T}/${.TARGET}"
513 @${_MKSHECHO} ${KCOMPILE.s} -pg
514 @${KCOMPILE.s} -pg
515
516 .S.o:
517 @${_MKSHMSG} "compile ${.CURDIR:T}/${.TARGET}"
518 @${_MKSHECHO} ${KCOMPILE.s}
519 @${KCOMPILE.s}
520 .S.go:
521 @${_MKSHMSG} "compile ${.CURDIR:T}/${.TARGET}"
522 @${_MKSHECHO} ${KCOMPILE.s} -g
523 @${KCOMPILE.s} -g
524 .S.po:
525 @${_MKSHMSG} "compile ${.CURDIR:T}/${.TARGET}"
526 @${_MKSHECHO} ${KCOMPILE.s} -pg
527 @${KCOMPILE.s} -pg
528 .endif # ___USE_SUFFIX_RULES___
529
530 ##
531 ## the end
532 ##
533