version 1.13, 2002/05/07 02:00:17 |
version 1.13.2.3, 2002/07/15 10:35:06 |
|
|
## (0) toolchain settings for things that aren't part of the standard |
## (0) toolchain settings for things that aren't part of the standard |
## toolchain |
## toolchain |
## |
## |
|
DBSYM?= dbsym |
MKDEP?= mkdep |
MKDEP?= mkdep |
STRIP?= strip |
STRIP?= strip |
OBJCOPY?= objcopy |
OBJCOPY?= objcopy |
OBJDUMP?= objdump |
OBJDUMP?= objdump |
|
CSCOPE?= cscope |
|
MKID?= mkid |
.MAKEOVERRIDES+=USETOOLS # make sure proper value is propagated |
.MAKEOVERRIDES+=USETOOLS # make sure proper value is propagated |
|
|
## |
## |
Line 48 COPTS?= ${DEFCOPTS} |
|
Line 51 COPTS?= ${DEFCOPTS} |
|
DBG= # might contain unwanted -Ofoo |
DBG= # might contain unwanted -Ofoo |
DEFWARNINGS?= yes |
DEFWARNINGS?= yes |
.if (${DEFWARNINGS} == "yes") |
.if (${DEFWARNINGS} == "yes") |
CWARNFLAGS+= -Werror -Wall -Wno-main |
CWARNFLAGS+= -Werror -Wall -Wno-main -Wno-format-zero-length |
WEAK_POINTERS?= no |
WEAK_POINTERS?= no |
.if !(${WEAK_POINTERS} == "yes") |
.if !(${WEAK_POINTERS} == "yes") |
CWARNFLAGS+= -Wpointer-arith |
CWARNFLAGS+= -Wpointer-arith |
Line 108 LIBCOMPAT?= ${COMPATLIB_PROF} |
|
Line 111 LIBCOMPAT?= ${COMPATLIB_PROF} |
|
## Each port should have a corresponding section with settings for |
## Each port should have a corresponding section with settings for |
## MD_CFILES, MD_SFILES, and MD_OBJS, along with build rules for same. |
## MD_CFILES, MD_SFILES, and MD_OBJS, along with build rules for same. |
## |
## |
MI_CFILES=ioconf.c param.c |
MI_CFILES=devsw.c ioconf.c param.c |
# the need for a MI_SFILES variable is dubitable at best |
# the need for a MI_SFILES variable is dubitable at best |
MI_OBJS=${MI_CFILES:S/.c/.o/} |
MI_OBJS=${MI_CFILES:S/.c/.o/} |
|
|
Line 199 uipc_proto.o vfs_conf.o: Makefile |
|
Line 202 uipc_proto.o vfs_conf.o: Makefile |
|
assym.h machdep.o: Makefile |
assym.h machdep.o: Makefile |
|
|
## |
## |
## (7) misc targets: install, clean(dir), depend(all), lint, links, tags |
## (7) misc targets: install, clean(dir), depend(all), lint, links, tags, |
|
## cscope, mkid |
## |
## |
## Any ports that have other stuff to be cleaned up should fill in |
## Any ports that have other stuff to be cleaned up should fill in |
## EXTRA_CLEAN. Some ports may want different settings for |
## EXTRA_CLEAN. Some ports may want different settings for |
|
|
@echo "see $S/kern/Makefile for tags" |
@echo "see $S/kern/Makefile for tags" |
.endif |
.endif |
|
|
|
EXTRA_CLEAN+= cscope.out |
|
.if !target(cscope.out) |
|
cscope.out: Makefile depend |
|
@echo Building cscope.out source database |
|
@echo ${SRCS} `sed 's/[^:]*://;s/^ *//;s/ *\\\\ *$$//;' \ |
|
lib/kern/.depend lib/compat/.depend | tr ' ' '\n' | \ |
|
sed "s|^../../||" | sort -u` \ |
|
| ${CSCOPE} -k -i - -b `echo ${INCLUDES} | sed s/-nostdinc//` |
|
# cscope doesn't write cscope.out if it's uptodate, so ensure |
|
# make doesn't keep calling cscope when not needed. |
|
@touch cscope.out |
|
.endif |
|
|
|
.if !target(cscope) |
|
cscope: cscope.out |
|
@${CSCOPE} -d |
|
.endif |
|
|
|
EXTRA_CLEAN+= ID |
|
.if !target(mkid) |
|
.PHONY: mkid |
|
mkid: ID |
|
|
|
ID: Makefile depend |
|
@echo Building mkid database |
|
@${MKID} `sed 's/[^:]*://;s/^ *//;s/ *\\\\ *$$//;' lib/kern/.depend \ |
|
lib/compat/.depend | tr ' ' '\n' | sed "s|^../../||" | sort -u` \ |
|
`sed 's/[^:]*://;s/^ *//;s/ *\\\\ *$$//;' .depend | tr ' ' '\n' \ |
|
| sort -u` |
|
|
|
.endif |
|
|
## |
## |
## the end |
## the end |
## |
## |