xref: /freebsd/sys/Makefile (revision 9be0cda615e6437e7db862cea3b1857716e2787d)
1# $FreeBSD$
2
3# The boot loader
4.if !defined(NO_BOOT)
5.if ${MACHINE_ARCH} != "arm"
6SUBDIR=	boot
7.endif
8.endif
9
10# Directories to include in cscope name file and TAGS.
11CSCOPEDIRS=	coda compat conf contrib crypto ddb dev fs gnu i4b isa \
12		isofs kern libkern modules net netatalk netatm netgraph \
13		netinet netinet6 netipx netkey netnatm netncp netsmb nfs \
14		nfsclient nfs4client rpc pccard pci posix4 sys ufs vm \
15		${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
27cscope:	${.CURDIR}/cscopenamefile
28	cd ${.CURDIR}; cscope -k -p4 -i cscopenamefile
29
30${.CURDIR}/cscopenamefile:
31	cd ${.CURDIR}; find ${CSCOPEDIRS} -name "*.[csh]" > ${.TARGET}
32
33TAGS ${.CURDIR}/TAGS:	${.CURDIR}/cscopenamefile
34	rm -f ${.CURDIR}/TAGS
35	cd ${.CURDIR}; xargs etags -a < ${.CURDIR}/cscopenamefile
36
37.include <bsd.subdir.mk>
38