Makefile revision 179174
1# $FreeBSD: head/sys/Makefile 179174 2008-05-21 07:56:10Z obrien $ 2 3.include <bsd.own.mk> 4 5# The boot loader 6.if ${MK_BOOT} != "no" 7SUBDIR= boot 8.endif 9 10# Directories to include in cscope name file and TAGS. 11CSCOPEDIRS= boot bsm cam compat conf contrib crypto ddb dev fs gdb geom \ 12 gnu i4b isa kern libkern modules net net80211 netatalk netatm \ 13 netgraph netinet netinet6 netipsec netipx netnatm netncp \ 14 netsmb nfs nfs4client nfsclient nfsserver opencrypto pccard \ 15 pci rpc security sys ufs vm ${ARCHDIR} 16 17ARCHDIR ?= ${MACHINE} 18 19# Loadable kernel modules 20 21.if defined(MODULES_WITH_WORLD) 22SUBDIR+=modules 23.endif 24 25HTAGSFLAGS+= -at `awk -F= '/^RELEASE *=/{release=$2}; END {print "FreeBSD", release, "kernel"}' < conf/newvers.sh` 26 27# You need the devel/cscope port for this. 28cscope: cscope.out 29cscope.out: ${.CURDIR}/cscope.files 30 cd ${.CURDIR}; cscope -k -buq -p4 31 32${.CURDIR}/cscope.files: .PHONY 33 cd ${.CURDIR}; \ 34 find ${CSCOPEDIRS} -name "*.[chSs]" -a -type f > ${.TARGET} 35 36cscope-clean: 37 rm -f cscope.files cscope.out cscope.in.out cscope.po.out 38 39# You need the devel/global and one of editor/emacs* ports for that. 40TAGS ${.CURDIR}/TAGS: ${.CURDIR}/cscope.files 41 rm -f ${.CURDIR}/TAGS 42 cd ${.CURDIR}; xargs etags -a < ${.CURDIR}/cscope.files 43 44.include <bsd.subdir.mk> 45