1# $FreeBSD$ 2 3.include <bsd.own.mk> 4 5# The boot loader 6.if ${MK_BOOT} != "no" 7.if ${MACHINE_ARCH} != "arm" 8SUBDIR= boot 9.endif 10.endif 11 12# Directories to include in cscope name file and TAGS. 13CSCOPEDIRS= coda compat conf contrib crypto ddb dev fs geom gnu i4b isa \ 14 isofs kern libkern modules net net80211 netatalk netatm \ 15 netgraph netinet netinet6 netipx netkey netnatm netncp \ 16 netsmb nfs nfsclient nfs4client rpc pccard pci posix4 sys \ 17 ufs vm ${ARCHDIR} 18 19ARCHDIR ?= ${MACHINE} 20 21# Loadable kernel modules 22 23.if defined(MODULES_WITH_WORLD) 24SUBDIR+=modules 25.endif 26 27HTAGSFLAGS+= -at `awk -F= '/^RELEASE *=/{release=$2}; END {print "FreeBSD", release, "kernel"}' < conf/newvers.sh` 28 29cscope: ${.CURDIR}/cscopenamefile 30 cd ${.CURDIR}; cscope -k -p4 -i cscopenamefile 31 32${.CURDIR}/cscopenamefile: 33 cd ${.CURDIR}; find ${CSCOPEDIRS} -name "*.[csh]" > ${.TARGET} 34 35TAGS ${.CURDIR}/TAGS: ${.CURDIR}/cscopenamefile 36 rm -f ${.CURDIR}/TAGS 37 cd ${.CURDIR}; xargs etags -a < ${.CURDIR}/cscopenamefile 38 39.include <bsd.subdir.mk> 40