Makefile.kern.inc revision 1.111.4.4 1 # $NetBSD: Makefile.kern.inc,v 1.111.4.4 2010/03/11 15:03:20 yamt 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 ##
21 ## (0) toolchain settings for things that aren't part of the standard
22 ## toolchain
23 ##
24 HOST_SH?= sh
25 DBSYM?= dbsym
26 MKDEP?= mkdep
27 STRIP?= strip
28 OBJCOPY?= objcopy
29 OBJDUMP?= objdump
30 CSCOPE?= cscope
31 MKID?= mkid
32 UUDECODE?= ${TOOL_UUDECODE:Uuudecode}
33 HEXDUMP?= ${TOOL_HEXDUMP:Uhexdump}
34 GENASSYM?= ${TOOL_GENASSYM:Ugenassym}
35 .MAKEOVERRIDES+=USETOOLS # make sure proper value is propagated
36
37 _MKMSG?= @\#
38 _MKSHMSG?= echo
39 _MKSHECHO?= echo
40 _MKMSG_CREATE?= :
41 _MKTARGET_COMPILE?= :
42 _MKTARGET_CREATE?= :
43
44 ##
45 ## (1) port independent source tree identification
46 ##
47 # source tree is located via $S relative to the compilation directory
48 .ifndef S
49 S!= cd ../../../..; pwd
50 .endif
51
52 ##
53 ## (2) compile settings
54 ##
55 ## CPPFLAGS, CFLAGS, and AFLAGS must be set in the port's Makefile
56 ##
57 INCLUDES?= -I. ${EXTRA_INCLUDES} -I${S}/../common/include -I$S/arch \
58 -I$S -nostdinc
59 CPPFLAGS+= ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL -D_KERNEL_OPT
60 DEFCOPTS?= -O2
61 COPTS?= ${DEFCOPTS}
62 COPTS+= -std=gnu99
63 DBG= # might contain unwanted -Ofoo
64 DEFWARNINGS?= yes
65 .if (${DEFWARNINGS} == "yes")
66 . if !defined(NOGCCERROR)
67 CWARNFLAGS+= -Werror
68 . endif
69 CWARNFLAGS+= -Wall -Wno-main -Wno-format-zero-length -Wpointer-arith
70 CWARNFLAGS+= -Wmissing-prototypes -Wstrict-prototypes
71 CWARNFLAGS+= -Wswitch -Wshadow
72 CWARNFLAGS+= -Wcast-qual -Wwrite-strings
73 CWARNFLAGS+= -Wno-unreachable-code
74 # Add -Wno-sign-compare. -Wsign-compare is included in -Wall as of GCC 3.3,
75 # but our sources aren't up for it yet.
76 CWARNFLAGS+= -Wno-sign-compare
77 . if (defined(HAVE_GCC) && ${HAVE_GCC} > 3) || defined(HAVE_PCC)
78 CWARNFLAGS+= -Wno-pointer-sign -Wno-attributes
79 . if ${MACHINE} == "i386" || ${MACHINE_ARCH} == "x86_64" || \
80 ${MACHINE_ARCH} == "sparc64" || ${MACHINE} == "prep"
81 CWARNFLAGS+= -Wextra -Wno-unused-parameter
82 . endif
83 . endif
84 .endif
85
86 CFLAGS+= -ffreestanding -fno-zero-initialized-in-bss
87 CFLAGS+= ${DEBUG} ${COPTS}
88 AFLAGS+= -D_LOCORE -Wa,-fatal-warnings
89
90 # XXX
91 .if defined(HAVE_GCC) && ${HAVE_GCC} > 3
92 CFLAGS+= -fno-strict-aliasing
93 .endif
94
95 .if ${USE_SSP:Uno} == "yes"
96 CFLAGS+=-fstack-protector -Wstack-protector --param ssp-buffer-size=1
97 LDFLAGS+=-fstack-protector -Wstack-protector --param ssp-buffer-size=1
98 COPTS.kern_ssp.c+= -fno-stack-protector -D__SSP__
99 .endif
100
101 # If we want the bpendtsleep: label in kern_synch.c, we need to use
102 # -fno-reorder-blocks. Don't make this a config(1) defflag without
103 # making sure this fragment remains valid.
104 .if defined(HAVE_GCC) && ${HAVE_GCC} > 3 && \
105 !empty(${CFLAGS:M-DKERN_SYNCH_BPENDTSLEEP_LABEL})
106 COPTS.kern_synch.c+= -fno-reorder-blocks
107 .endif
108
109 # Use the per-source COPTS variables to add -g to just those
110 # files that match the shell patterns given in ${DEBUGLIST}
111 #
112 .for i in ${DEBUGLIST}
113 . for j in ${CFILES:T:M$i.c}
114 COPTS.${j}+=-g
115 . endfor
116 .endfor
117
118 # Always compile subr_debug_info.c with debug informations.
119 # This allows gdb to use type informations.
120 #
121 COPTS.debugsyms.c+= -g
122
123 # Add CTF sections for DTrace
124 .if defined(CTFCONVERT)
125 COMPILE_CTFCONVERT= ${_MKSHECHO}\
126 ${CTFCONVERT} ${CTFFLAGS} ${.TARGET} && \
127 ${CTFCONVERT} ${CTFFLAGS} ${.TARGET}
128 .else
129 COMPILE_CTFCONVERT= ${_MKSHECHO}
130 .endif
131
132 # compile rules: rules are named ${TYPE}_${SUFFIX} where TYPE is NORMAL or
133 # NOPROF and SUFFIX is the file suffix, capitalized (e.g. C for a .c file).
134 NORMAL_C?= @${_MKSHMSG} "compile ${.CURDIR:T}/${.TARGET}" && \
135 ${_MKSHECHO}\
136 ${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} -c $< && \
137 ${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} -c $< && \
138 ${COMPILE_CTFCONVERT}
139 NOPROF_C?= @${_MKSHMSG} "compile ${.CURDIR:T}/${.TARGET}" && \
140 ${_MKSHECHO}\
141 ${CC} ${CFLAGS} ${CPPFLAGS} -c $< && \
142 ${CC} ${CFLAGS} ${CPPFLAGS} -c $< && \
143 ${COMPILE_CTFCONVERT}
144 NORMAL_S?= @${_MKSHMSG} "compile ${.CURDIR:T}/${.TARGET}" && \
145 ${_MKSHECHO}\
146 ${CC} ${AFLAGS} ${CPPFLAGS} -c $< && \
147 ${CC} ${AFLAGS} ${CPPFLAGS} -c $<
148
149 ##
150 ## (3) libkern and compat
151 ##
152 ## Set KERN_AS in the port Makefile to "obj" or "library". The
153 ## default is "library", as documented in $S/lib/libkern/Makefile.inc.
154 ##
155
156 ### find out what to use for libkern
157 .include "$S/lib/libkern/Makefile.inc"
158 .ifndef PROF
159 LIBKERN?= ${KERNLIB}
160 .else
161 LIBKERN?= ${KERNLIB_PROF}
162 .endif
163
164 LIBKERNLN?= ${KERNLIBLN}
165
166 ### find out what to use for libcompat
167 .include "$S/compat/common/Makefile.inc"
168 .ifndef PROF
169 SYSLIBCOMPAT?= ${COMPATLIB}
170 .else
171 SYSLIBCOMPAT?= ${COMPATLIB_PROF}
172 .endif
173
174 SYSLIBCOMPATLN?= ${COMPATLIBLN}
175
176 ##
177 ## (4) local objects, compile rules, and dependencies
178 ##
179 ## Each port should have a corresponding section with settings for
180 ## MD_CFILES, MD_SFILES, and MD_OBJS, along with build rules for same.
181 ##
182 MI_CFILES=devsw.c ioconf.c param.c
183 # the need for a MI_SFILES variable is dubitable at best
184 MI_OBJS=${MI_CFILES:S/.c/.o/}
185
186 param.c: $S/conf/param.c
187 ${_MKTARGET_CREATE}
188 rm -f param.c
189 cp $S/conf/param.c .
190
191 param.o: Makefile
192
193 .for _cfile in ${MI_CFILES}
194 ${_cfile:T:R}.o: ${_cfile}
195 ${NORMAL_C}
196 .endfor
197
198 ##
199 ## (5) link settings
200 ##
201 ## TEXTADDR (or LOADADDRESS), LINKFORMAT, and any EXTRA_LINKFLAGS must
202 ## be set in the port's Makefile. The port specific definitions for
203 ## LINKFLAGS_NORMAL and LINKFLAGS_DEBUG will added to the LINKFLAGS
204 ## depending on the value of DEBUG.
205 ##
206 # load lines for config "xxx" will be emitted as:
207 # xxx: ${SYSTEM_DEP} swapxxx.o
208 # ${SYSTEM_LD_HEAD}
209 # ${SYSTEM_LD} swapxxx.o
210 # ${SYSTEM_LD_TAIL}
211 SYSTEM_OBJ?= ${MD_OBJS} ${MI_OBJS} ${OBJS:O} ${SYSLIBCOMPAT} ${LIBKERN}
212 SYSTEM_DEP?= Makefile ${SYSTEM_OBJ:O} .gdbinit
213 .if defined(CTFMERGE)
214 SYSTEM_CTFMERGE= ${CTFMERGE} ${CTFFLAGS} -o ${.TARGET} ${SYSTEM_OBJ} ${EXTRA_OBJ} vers.o
215 .else
216 SYSTEM_CTFMERGE= ${_MKSHECHO}
217 .endif
218 SYSTEM_LD_HEAD?=@rm -f $@
219 SYSTEM_LD?= @${_MKSHMSG} " link ${.CURDIR:T}/${.TARGET}"; \
220 ${_MKSHECHO}\
221 ${LD} -Map $@.map --cref ${LINKFLAGS} -o $@ '$${SYSTEM_OBJ}' '$${EXTRA_OBJ}' vers.o; \
222 ${LD} -Map $@.map --cref ${LINKFLAGS} -o $@ ${SYSTEM_OBJ} ${EXTRA_OBJ} vers.o
223 SYSTEM_LD_TAIL?=@${TOOL_SED} '/const char sccs/!d;s/.*@(.)//;s/\\.*//' vers.c; \
224 ${SIZE} $@; chmod 755 $@; \
225 ${SYSTEM_CTFMERGE}
226
227 TEXTADDR?= ${LOADADDRESS} # backwards compatibility
228 LINKTEXT?= ${TEXTADDR:C/.+/-Ttext &/}
229 LINKDATA?= ${DATAADDR:C/.+/-Tdata &/}
230 ENTRYPOINT?= start
231 LINKENTRY?= ${ENTRYPOINT:C/.+/-e &/}
232 LINKFLAGS?= ${LINKFORMAT} ${LINKTEXT} ${LINKDATA} ${LINKENTRY} \
233 ${EXTRA_LINKFLAGS}
234
235 LINKFLAGS_DEBUG?= -X
236 SYSTEM_LD_TAIL_DEBUG?=; \
237 echo mv -f $@ $@.gdb; mv -f $@ $@.gdb; \
238 echo ${STRIP} ${STRIPFLAGS} -o $@ $@.gdb; \
239 ${STRIP} ${STRIPFLAGS} -o $@ $@.gdb
240 LINKFLAGS_NORMAL?= -S
241 STRIPFLAGS?= -g
242
243 DEBUG?=
244 .if !empty(DEBUG:M-g*)
245 SYSTEM_LD_TAIL+=${SYSTEM_LD_TAIL_DEBUG}
246 LINKFLAGS+= ${LINKFLAGS_DEBUG}
247 EXTRA_KERNELS+= ${KERNELS:@.KERNEL.@${.KERNEL.}.gdb@}
248 CTFFLAGS+= -g
249 .elifndef PROF
250 LINKFLAGS+= ${LINKFLAGS_NORMAL}
251 .endif
252
253 SYSTEM_LD_TAIL+=; \
254 if grep '^\#define.*SYMTAB_SPACE' opt_ddbparam.h > /dev/null; then \
255 echo "${DBSYM} $@"; \
256 ${DBSYM} $@; \
257 fi
258
259 SYSTEM_LD_HEAD+=${SYSTEM_LD_HEAD_EXTRA}
260 SYSTEM_LD_TAIL+=${SYSTEM_LD_TAIL_EXTRA}
261
262 ##
263 ## (6) port independent targets and dependencies: assym.h, vers.o
264 ##
265 .if !target(assym.h)
266 assym.h: ${GENASSYM_CONF} ${GENASSYM_EXTRAS}
267 ${_MKTARGET_CREATE}
268 cat ${GENASSYM_CONF} ${GENASSYM_EXTRAS} | \
269 ${GENASSYM} -- ${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} \
270 > assym.h.tmp && \
271 mv -f assym.h.tmp assym.h
272 ${MD_SFILES:C/\.[Ss]/.o/} ${SFILES:C/\.[Ss]/.o/}: assym.h
273 .endif
274
275 MKREPRO?=no
276
277 .if ${MKREPRO} == "yes"
278 _NVFLAGS=-r
279 .else
280 _NVFLAGS=
281 .endif
282
283 .if !target(vers.o)
284 newvers: vers.o
285 vers.o: ${SYSTEM_DEP} ${SYSTEM_SWAP_DEP} $S/conf/newvers.sh $S/conf/osrelease.sh
286 ${_MKMSG_CREATE} vers.c
287 ${HOST_SH} $S/conf/newvers.sh ${_NVFLAGS}
288 ${_MKTARGET_COMPILE}
289 ${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} -c vers.c
290 .endif
291
292 .if defined(MEMORY_DISK_IMAGE)
293 md_root_image.h: ${MEMORY_DISK_IMAGE}
294 ${_MKTARGET_CREATE}
295 ${TOOL_HEXDUMP} -v -e '"\t" 8/1 "0x%02x, " "\n"' ${.ALLSRC} > ${.TARGET}
296
297 # XXX This is only needed when building md_root.o
298 CPPFLAGS+= -DMEMORY_DISK_IMAGE
299 md_root.o: md_root_image.h
300 .endif
301
302 # depend on MEMORY_DISK_IMAGE configuration
303 md_root.o: Makefile
304
305 # depend on root or device configuration
306 autoconf.o conf.o: Makefile
307
308 # depend on network or filesystem configuration
309 uipc_proto.o vfs_conf.o: Makefile
310
311 # depend on maxusers and CPU configuration
312 assym.h machdep.o: Makefile
313
314 ##
315 ## (7) misc targets: install, clean(dir), depend(all), lint, links, tags,
316 ## cscope, mkid
317 ##
318 ## Any ports that have other stuff to be cleaned up should fill in
319 ## EXTRA_CLEAN. Some ports may want different settings for
320 ## KERNLINTFLAGS, MKDEP_CFLAGS, or MKDEP_AFLAGS.
321 ##
322 .if !target(__CLEANKERNEL)
323 __CLEANKERNEL: .USE
324 ${_MKMSG} "${.TARGET}ing the kernel objects"
325 rm -f ${KERNELS} eddep tags *.[io] *.ln [a-z]*.s vers.c \
326 [Ee]rrs linterrs makelinks assym.h.tmp assym.h \
327 ${EXTRA_KERNELS} ${EXTRA_CLEAN}
328 .endif
329
330 .if !target(kernelnames)
331 kernelnames:
332 @echo "${KERNELS} ${EXTRA_KERNELS}"
333 .endif
334
335 .if !target(__CLEANDEPEND)
336 __CLEANDEPEND: .USE
337 echo .depend ${DEPS} | xargs rm -f --
338 .endif
339
340 # do not !target these, the kern and compat Makefiles augment them
341 cleandir distclean: __CLEANKERNEL __CLEANDEPEND
342 clean: __CLEANKERNEL
343 depend: .depend
344 dependall: depend .WAIT all
345
346 .if !target(.depend)
347 MKDEP_AFLAGS?= ${AFLAGS}
348 MKDEP_CFLAGS?= ${CFLAGS}
349 SSRCS=${MD_SFILES} ${SFILES}
350 CSRCS=${MD_CFILES} ${MI_CFILES} ${CFILES}
351 SRCS=${SSRCS} ${CSRCS}
352 DEPS= ${SRCS:T:O:u:R:S/$/.d/g}
353
354 .for _s in ${SSRCS}
355 ${_s:T:R}.d: ${_s} assym.h
356 ${_MKTARGET_CREATE}
357 ${MKDEP} -f ${.TARGET} -- ${MKDEP_AFLAGS} \
358 ${CPPFLAGS} ${CPPFLAGS.${_s:T}} ${_s}
359 .endfor
360 .for _s in ${CSRCS}
361 ${_s:T:R}.d: ${_s}
362 ${_MKTARGET_CREATE}
363 ${MKDEP} -f ${.TARGET} -- ${MKDEP_CFLAGS} \
364 ${CPPFLAGS} ${CPPFLAGS.${_s:T}} ${_s}
365 .endfor
366
367 assym.d: assym.h
368 ${_MKTARGET_CREATE}
369 cat ${GENASSYM_CONF} ${GENASSYM_EXTRAS} | \
370 ${GENASSYM} -- ${MKDEP} -f assym.dep -- \
371 ${CFLAGS} ${CPPFLAGS}
372 ${TOOL_SED} -e 's/.*\.o:.*\.c/assym.h:/' < assym.dep >${.TARGET}
373 rm -f assym.dep
374
375 DEPS+= assym.d
376
377 .depend: ${DEPS}
378 ${_MKTARGET_CREATE}
379 echo "${.ALLSRC}" | ${MKDEP} -D
380 .endif
381
382 .if !target(lint)
383 ALLSFILES?= ${MD_SFILES} ${SFILES}
384 LINTSTUBS?= ${ALLSFILES:T:R:C/^.*$/LintStub_&.c/g}
385 KERNLINTFLAGS?= -bcehnxzFS
386 NORMAL_LN?= ${LINT} ${KERNLINTFLAGS} ${CPPFLAGS:M-[IDU]*} -i $<
387
388 _lsrc=${CFILES} ${LINTSTUBS} ${MI_CFILES} ${MD_CFILES}
389 LOBJS?= ${_lsrc:T:S/.c$/.ln/g} ${LIBKERNLN} ${SYSLIBCOMPATLN}
390
391 .for _sfile in ${ALLSFILES}
392 LintStub_${_sfile:T:R}.c: ${_sfile} assym.h
393 ${_MKTARGET_COMPILE}
394 ${CC} -E -C ${AFLAGS} ${CPPFLAGS} ${_sfile} | \
395 ${TOOL_AWK} -f $S/kern/genlintstub.awk >${.TARGET}
396 .endfor
397
398 .for _cfile in ${CFILES} ${LINTSTUBS} ${MI_CFILES} ${MD_CFILES}
399 ${_cfile:T:R}.ln: ${_cfile}
400 ${_MKTARGET_COMPILE}
401 ${NORMAL_LN}
402 .endfor
403
404 lint: ${LOBJS}
405 ${LINT} ${KERNLINTFLAGS} ${CPPFLAGS:M-[IDU]*} ${LOBJS}
406 .endif
407
408 # Attempt to do a syntax-only compile of the entire kernel as one entity.
409 # Alas, bugs in the GCC C frontend prevent this from completely effective
410 # but information can be gleaned from the output.
411 syntax-only: ${CFILES} ${MD_CFILES}
412 ${CC} -fsyntax-only -combine ${CFLAGS} ${CPPFLAGS} \
413 ${CFILES} ${MD_CFILES}
414
415 # List of kernel images that will be installed into the root file system.
416 # Some platforms may need to install more than one (e.g. a netbsd.aout file
417 # to be loaded directly by the firmware), so this can be overriden by them.
418 KERNIMAGES?= netbsd
419
420 .if !target(install)
421 # The install target can be redefined by putting a
422 # install-kernel-${MACHINE_NAME} target into /etc/mk.conf
423 MACHINE_NAME!= uname -n
424 install: install-kernel-${MACHINE_NAME}
425 .if !target(install-kernel-${MACHINE_NAME})
426 install-kernel-${MACHINE_NAME}:
427 .for _K in ${KERNIMAGES}
428 rm -f ${DESTDIR}/o${_K}
429 ln ${DESTDIR}/${_K} ${DESTDIR}/o${_K}
430 cp ${_K} ${DESTDIR}/n${_K}
431 mv ${DESTDIR}/n${_K} ${DESTDIR}/${_K}
432 .endfor
433 .endif
434 .endif
435
436 .if !target(tags)
437 tags:
438 @echo "see $S/kern/Makefile for tags"
439 .endif
440
441 EXTRA_CLEAN+= cscope.out cscope.tmp
442 .if !target(cscope.out)
443 cscope.out: Makefile depend
444 ${_MKTARGET_CREATE}
445 @${TOOL_SED} 's/[^:]*://;s/^ *//;s/ *\\ *$$//;' lib/kern/.depend \
446 | tr -s ' ' '\n' \
447 | ${TOOL_SED} ';s|^../../||;' \
448 > cscope.tmp
449 @${TOOL_SED} 's/[^:]*://;s/^ *//;s/ *\\ *$$//;' lib/compat/.depend \
450 | tr -s ' ' '\n' \
451 | ${TOOL_SED} 's|^../../||;' \
452 >> cscope.tmp
453 @echo ${SRCS} | cat - cscope.tmp | tr -s ' ' '\n' | sort -u | \
454 ${CSCOPE} -k -i - -b `echo ${INCLUDES} | ${TOOL_SED} s/-nostdinc//`
455 # cscope doesn't write cscope.out if it's uptodate, so ensure
456 # make doesn't keep calling cscope when not needed.
457 @rm -f cscope.tmp; touch cscope.out
458 .endif
459
460 .if !target(cscope)
461 cscope: cscope.out
462 @${CSCOPE} -d
463 .endif
464
465 EXTRA_CLEAN+= ID
466 .if !target(mkid)
467 .PHONY: mkid
468 mkid: ID
469
470 ID: Makefile depend
471 ${_MKTARGET_CREATE}
472 @${MKID} \
473 `${TOOL_SED} 's/[^:]*://;s/^ *//;s/ *\\\\ *$$//;' \
474 lib/kern/.depend lib/compat/.depend \
475 | tr ' ' '\n' \
476 | ${TOOL_SED} "s|^../../||" \
477 | sort -u` \
478 `${TOOL_SED} 's/[^:]*://;s/^ *//;s/ *\\\\ *$$//;' \
479 .depend \
480 | tr ' ' '\n' \
481 | sort -u`
482
483 .endif
484
485 .include "${S}/gdbscripts/Makefile.inc"
486
487 EXTRA_CLEAN+= .gdbinit
488 .gdbinit: Makefile ${S}/gdbscripts/Makefile.inc
489 ${_MKTARGET_CREATE}
490 rm -f .gdbinit
491 .for __gdbinit in ${SYS_GDBINIT}
492 echo "source ${S}/gdbscripts/${__gdbinit}" >> .gdbinit
493 .endfor
494 .if defined(GDBINIT) && !empty(GDBINIT)
495 .for __gdbinit in ${GDBINIT}
496 echo "source ${__gdbinit}" >> .gdbinit
497 .endfor
498 .endif
499
500 # The following files use alloca(3) or variable array allocations.
501 # Their full name is noted as documentation.
502 VARSTACK=kern/uipc_socket.c miscfs/genfs/genfs_vnops.c \
503 nfs/nfs_bio.c uvm/uvm_bio.c \
504 uvm/uvm_pager.c dev/ic/aic7xxx.c dev/ic/aic79xx.c arch/xen/i386/gdt.c \
505 dev/ofw/ofw_subr.c
506
507 . if (defined(HAVE_GCC) && ${HAVE_GCC} > 3) || defined(HAVE_PCC)
508 .for __varstack in ${VARSTACK}
509 COPTS.${__varstack:T} += -Wno-stack-protector
510 .endfor
511 .endif
512
513 AFLAGS+= ${AOPTS.${.IMPSRC:T}}
514 CFLAGS+= ${COPTS.${.IMPSRC:T}} ${CPUFLAGS.${.IMPSRC:T}}
515 CPPFLAGS+= ${CPPFLAGS.${.IMPSRC:T}}
516 CWARNFLAGS+= ${CWARNFLAGS.${.IMPSRC:T}}
517
518 .include <bsd.files.mk>
519
520 ##
521 ## the end
522 ##
523