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