3 .if ${MACHINE_ARCH} == "arm"
12 # Directories to include in cscope name file and TAGS.
13 CSCOPEDIRS= coda compat conf contrib crypto ddb dev fs gnu i4b isa \
14 isofs kern libkern modules net netatalk netatm netgraph \
15 netinet netinet6 netipx netkey netnatm netncp netsmb nfs \
16 nfsclient nfs4client rpc pccard pci posix4 sys ufs vm \
19 CSCOPE_ARCHDIR ?= amd64 arm i386 ia64 pc98 powerpc sparc64 sun4v
21 CSCOPE_ARCHDIR ?= ${MACHINE}
24 # Loadable kernel modules
26 .if defined(MODULES_WITH_WORLD)
30 HTAGSFLAGS+= -at `awk -F= '/^RELEASE *=/{release=$2}; END {print "FreeBSD", release, "kernel"}' < conf/newvers.sh`
33 cscope.out: ${.CURDIR}/cscope.files
34 cd ${.CURDIR}; cscope -k -buq -p4
36 ${.CURDIR}/cscope.files: .PHONY
38 find ${CSCOPEDIRS} -name "*.[chSs]" -a -type f > ${.TARGET}
41 rm -f cscope.files cscope.out cscope.in.out cscope.po.out
43 # You need the devel/global and one of editor/emacs* ports for that.
44 TAGS ${.CURDIR}/TAGS: ${.CURDIR}/cscope.files
46 cd ${.CURDIR}; xargs etags -a < ${.CURDIR}/cscope.files
48 .include <bsd.subdir.mk>