]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sys/Makefile
This commit was generated by cvs2svn to compensate for changes in r160157,
[FreeBSD/FreeBSD.git] / sys / Makefile
1 # $FreeBSD$
2
3 .include <bsd.own.mk>
4
5 # The boot loader
6 .if ${MK_BOOT} != "no"
7 .if ${MACHINE_ARCH} != "arm"
8 SUBDIR= boot
9 .endif
10 .endif
11
12 # Directories to include in cscope name file and TAGS.
13 CSCOPEDIRS=     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
19 ARCHDIR ?=      ${MACHINE}
20
21 # Loadable kernel modules
22
23 .if defined(MODULES_WITH_WORLD)
24 SUBDIR+=modules
25 .endif
26
27 HTAGSFLAGS+= -at `awk -F= '/^RELEASE *=/{release=$2}; END {print "FreeBSD", release, "kernel"}' < conf/newvers.sh`
28
29 cscope: ${.CURDIR}/cscopenamefile
30         cd ${.CURDIR}; cscope -k -p4 -i cscopenamefile
31
32 ${.CURDIR}/cscopenamefile: 
33         cd ${.CURDIR}; find ${CSCOPEDIRS} -name "*.[csh]" > ${.TARGET}
34
35 TAGS ${.CURDIR}/TAGS:   ${.CURDIR}/cscopenamefile
36         rm -f ${.CURDIR}/TAGS
37         cd ${.CURDIR}; xargs etags -a < ${.CURDIR}/cscopenamefile
38
39 .include <bsd.subdir.mk>