1999-08-28 01:08:13 +00:00
|
|
|
# $FreeBSD$
|
1994-05-28 04:10:32 +00:00
|
|
|
|
2006-03-17 18:54:44 +00:00
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
2000-03-19 11:42:34 +00:00
|
|
|
# The boot loader
|
2006-03-17 18:54:44 +00:00
|
|
|
.if ${MK_BOOT} != "no"
|
2003-06-26 03:52:48 +00:00
|
|
|
SUBDIR= boot
|
2004-05-16 00:19:12 +00:00
|
|
|
.endif
|
1998-11-03 06:50:58 +00:00
|
|
|
|
2005-03-05 00:56:15 +00:00
|
|
|
# Directories to include in cscope name file and TAGS.
|
2008-01-23 08:50:34 +00:00
|
|
|
CSCOPEDIRS= boot bsm cam compat conf contrib crypto ddb dev fs gdb geom gnu \
|
2007-04-14 16:29:15 +00:00
|
|
|
i4b isa kern libkern modules net net80211 netatalk netatm \
|
2007-07-05 08:55:14 +00:00
|
|
|
netgraph netinet netinet6 netipsec netipx netnatm netncp \
|
2008-01-23 08:50:34 +00:00
|
|
|
netsmb nfs nfs4client nfsclient nfsserver opencrypto pccard \
|
|
|
|
pci rpc security sys ufs vm ${ARCHDIR}
|
2005-03-05 00:56:15 +00:00
|
|
|
|
2005-03-08 00:09:41 +00:00
|
|
|
ARCHDIR ?= ${MACHINE}
|
2005-03-05 00:56:15 +00:00
|
|
|
|
2004-01-17 03:28:27 +00:00
|
|
|
# Loadable kernel modules
|
2005-03-05 00:56:15 +00:00
|
|
|
|
2000-06-17 10:51:56 +00:00
|
|
|
.if defined(MODULES_WITH_WORLD)
|
|
|
|
SUBDIR+=modules
|
|
|
|
.endif
|
|
|
|
|
1997-07-13 07:36:20 +00:00
|
|
|
HTAGSFLAGS+= -at `awk -F= '/^RELEASE *=/{release=$2}; END {print "FreeBSD", release, "kernel"}' < conf/newvers.sh`
|
|
|
|
|
2007-07-05 08:55:14 +00:00
|
|
|
# You need the devel/cscope port for this.
|
2005-03-05 00:56:15 +00:00
|
|
|
cscope: ${.CURDIR}/cscopenamefile
|
|
|
|
cd ${.CURDIR}; cscope -k -p4 -i cscopenamefile
|
|
|
|
|
|
|
|
${.CURDIR}/cscopenamefile:
|
|
|
|
cd ${.CURDIR}; find ${CSCOPEDIRS} -name "*.[csh]" > ${.TARGET}
|
|
|
|
|
2007-07-05 08:55:14 +00:00
|
|
|
# You need the devel/global and one of editor/emacs* ports for that.
|
2005-03-05 00:56:15 +00:00
|
|
|
TAGS ${.CURDIR}/TAGS: ${.CURDIR}/cscopenamefile
|
|
|
|
rm -f ${.CURDIR}/TAGS
|
|
|
|
cd ${.CURDIR}; xargs etags -a < ${.CURDIR}/cscopenamefile
|
|
|
|
|
1994-05-28 04:10:32 +00:00
|
|
|
.include <bsd.subdir.mk>
|