Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-6]: src/sys/conf Pull up revision 1.16 (requested by wrstuden i...
details: https://anonhg.NetBSD.org/src/rev/4bcd630ef3ef
branches: netbsd-1-6
changeset: 527980:4bcd630ef3ef
user: lukem <lukem%NetBSD.org@localhost>
date: Tue Jun 18 14:54:45 2002 +0000
description:
Pull up revision 1.16 (requested by wrstuden in ticket #301):
Add cscope and mkid (and cscope.out and ID) targets to kernel compile
Makefiles. The main feature added by these targets is that they cover
ONLY the source files used for a given kernel and no other. Thus when
examining MD routines provided by all machines, you will see only
those applicable for your kernel.
diffstat:
sys/conf/Makefile.kern.inc | 33 +++++++++++++++++++++++++++++++--
1 files changed, 31 insertions(+), 2 deletions(-)
diffs (61 lines):
diff -r 05b8e3451a77 -r 4bcd630ef3ef sys/conf/Makefile.kern.inc
--- a/sys/conf/Makefile.kern.inc Tue Jun 18 14:46:26 2002 +0000
+++ b/sys/conf/Makefile.kern.inc Tue Jun 18 14:54:45 2002 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.kern.inc,v 1.13.4.2 2002/05/29 16:32:57 tv Exp $
+# $NetBSD: Makefile.kern.inc,v 1.13.4.3 2002/06/18 14:54:45 lukem Exp $
#
# This file contains common `MI' targets and definitions and it is included
# at the bottom of each `MD' ${MACHINE}/conf/Makefile.${MACHINE}. There are
@@ -27,6 +27,8 @@
STRIP?= strip
OBJCOPY?= objcopy
OBJDUMP?= objdump
+CSCOPE?= cscope
+MKID?= mkid
.MAKEOVERRIDES+=USETOOLS # make sure proper value is propagated
##
@@ -200,7 +202,8 @@
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
## EXTRA_CLEAN. Some ports may want different settings for
@@ -281,6 +284,32 @@
@echo "see $S/kern/Makefile for tags"
.endif
+EXTRA_CLEAN+= cscope.out
+.if !target(cscope.out)
+cscope.out: Makefile
+ @echo Building cscope.out source database
+ @echo ${SRCS} | ${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
+ @echo Building mkid database
+ @${MKID} ${SRCS}
+.endif
+
##
## the end
##
Home |
Main Index |
Thread Index |
Old Index