Makefile revision 171245
150477Speter# $FreeBSD: head/sys/Makefile 171245 2007-07-05 08:55:14Z bz $
21598Srgrimes
3156813Sru.include <bsd.own.mk>
4156813Sru
558284Speter# The boot loader
6156813Sru.if ${MK_BOOT} != "no"
7116865SpeterSUBDIR=	boot
8129269Scognet.endif
91598Srgrimes
10143145Sgrog# Directories to include in cscope name file and TAGS.
11168729SmaximCSCOPEDIRS=	bsm cam coda compat conf contrib crypto ddb dev fs geom gnu \
12168729Smaxim		i4b isa kern libkern modules net net80211 netatalk netatm \
13171245Sbz		netgraph netinet netinet6 netipsec netipx netnatm netncp \
14168729Smaxim		netsmb nfs nfsclient nfs4client rpc pccard pci security sys \
15159046Smaxim		ufs vm ${ARCHDIR}
16143145Sgrog
17143268SgrogARCHDIR	?=	${MACHINE}
18143145Sgrog
19124610Sru# Loadable kernel modules
20143145Sgrog
2161744Sobrien.if defined(MODULES_WITH_WORLD)
2261744SobrienSUBDIR+=modules
2361744Sobrien.endif
2461744Sobrien
2527356SjkhHTAGSFLAGS+= -at `awk -F= '/^RELEASE *=/{release=$2}; END {print "FreeBSD", release, "kernel"}' < conf/newvers.sh`
2627356Sjkh
27171245Sbz# You need the devel/cscope port for this.
28143145Sgrogcscope:	${.CURDIR}/cscopenamefile
29143145Sgrog	cd ${.CURDIR}; cscope -k -p4 -i cscopenamefile
30143145Sgrog
31143145Sgrog${.CURDIR}/cscopenamefile: 
32143145Sgrog	cd ${.CURDIR}; find ${CSCOPEDIRS} -name "*.[csh]" > ${.TARGET}
33143145Sgrog
34171245Sbz# You need the devel/global and one of editor/emacs* ports for that.
35143145SgrogTAGS ${.CURDIR}/TAGS:	${.CURDIR}/cscopenamefile
36143145Sgrog	rm -f ${.CURDIR}/TAGS
37143145Sgrog	cd ${.CURDIR}; xargs etags -a < ${.CURDIR}/cscopenamefile
38143145Sgrog
391598Srgrimes.include <bsd.subdir.mk>
40