]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sys/Makefile
First step towards parallel transmit in UDP: if neither a specific
[FreeBSD/FreeBSD.git] / sys / Makefile
1 # $FreeBSD$
2
3 .include <bsd.own.mk>
4
5 # The boot loader
6 .if ${MK_BOOT} != "no"
7 SUBDIR= boot
8 .endif
9
10 # Directories to include in cscope name file and TAGS.
11 CSCOPEDIRS=     boot bsm cam compat conf contrib crypto ddb dev fs gdb geom \
12                 gnu isa kern libkern modules net net80211 netatalk \
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
17 ARCHDIR ?=      ${MACHINE}
18
19 # Loadable kernel modules
20
21 .if defined(MODULES_WITH_WORLD)
22 SUBDIR+=modules
23 .endif
24
25 HTAGSFLAGS+= -at `awk -F= '/^RELEASE *=/{release=$2}; END {print "FreeBSD", release, "kernel"}' < conf/newvers.sh`
26
27 # You need the devel/cscope port for this.
28 cscope: cscope.out
29 cscope.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
36 cscope-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.
40 TAGS ${.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>