1999-08-27 21:08:13 -04:00
|
|
|
# $FreeBSD$
|
1994-05-28 00:10:32 -04:00
|
|
|
|
2006-03-17 13:54:44 -05:00
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
|
2000-03-19 06:42:34 -05:00
|
|
|
# The boot loader
|
2006-03-17 13:54:44 -05:00
|
|
|
.if ${MK_BOOT} != "no"
|
2003-06-25 23:52:48 -04:00
|
|
|
SUBDIR= boot
|
2004-05-15 20:19:12 -04:00
|
|
|
.endif
|
1998-11-03 01:50:58 -05:00
|
|
|
|
2005-03-04 19:56:15 -05:00
|
|
|
# Directories to include in cscope name file and TAGS.
|
2008-07-20 05:16:00 -04:00
|
|
|
CSCOPEDIRS= boot bsm cam cddl compat conf contrib crypto ddb dev fs gdb \
|
|
|
|
|
geom gnu isa kern libkern modules net net80211 netatalk \
|
2007-07-05 04:55:14 -04:00
|
|
|
netgraph netinet netinet6 netipsec netipx netnatm netncp \
|
2009-05-22 08:35:12 -04:00
|
|
|
netsmb nfs nfsclient nfsserver nlm opencrypto \
|
2011-06-10 16:51:41 -04:00
|
|
|
pci rpc security sys ufs vm xdr xen ${CSCOPE_ARCHDIR}
|
2008-07-10 12:03:24 -04:00
|
|
|
.if defined(ALL_ARCH)
|
2011-05-13 21:53:38 -04:00
|
|
|
CSCOPE_ARCHDIR ?= amd64 arm i386 ia64 mips pc98 powerpc sparc64 x86
|
2008-07-10 12:03:24 -04:00
|
|
|
.else
|
|
|
|
|
CSCOPE_ARCHDIR ?= ${MACHINE}
|
|
|
|
|
.endif
|
2005-03-04 19:56:15 -05:00
|
|
|
|
2004-01-16 22:28:27 -05:00
|
|
|
# Loadable kernel modules
|
2005-03-04 19:56:15 -05:00
|
|
|
|
2000-06-17 06:51:56 -04:00
|
|
|
.if defined(MODULES_WITH_WORLD)
|
|
|
|
|
SUBDIR+=modules
|
|
|
|
|
.endif
|
|
|
|
|
|
1997-07-13 03:36:20 -04:00
|
|
|
HTAGSFLAGS+= -at `awk -F= '/^RELEASE *=/{release=$2}; END {print "FreeBSD", release, "kernel"}' < conf/newvers.sh`
|
|
|
|
|
|
2007-07-05 04:55:14 -04:00
|
|
|
# You need the devel/cscope port for this.
|
2008-05-21 03:56:10 -04:00
|
|
|
cscope: cscope.out
|
|
|
|
|
cscope.out: ${.CURDIR}/cscope.files
|
|
|
|
|
cd ${.CURDIR}; cscope -k -buq -p4
|
2005-03-04 19:56:15 -05:00
|
|
|
|
2008-05-21 03:56:10 -04:00
|
|
|
${.CURDIR}/cscope.files: .PHONY
|
|
|
|
|
cd ${.CURDIR}; \
|
2010-11-20 22:58:11 -05:00
|
|
|
find ${CSCOPEDIRS} -name "*.[chSsly]" -a -type f > ${.TARGET}
|
2008-05-21 03:56:10 -04:00
|
|
|
|
|
|
|
|
cscope-clean:
|
|
|
|
|
rm -f cscope.files cscope.out cscope.in.out cscope.po.out
|
2005-03-04 19:56:15 -05:00
|
|
|
|
2007-07-05 04:55:14 -04:00
|
|
|
# You need the devel/global and one of editor/emacs* ports for that.
|
2008-05-21 03:56:10 -04:00
|
|
|
TAGS ${.CURDIR}/TAGS: ${.CURDIR}/cscope.files
|
2005-03-04 19:56:15 -05:00
|
|
|
rm -f ${.CURDIR}/TAGS
|
2008-05-21 03:56:10 -04:00
|
|
|
cd ${.CURDIR}; xargs etags -a < ${.CURDIR}/cscope.files
|
2005-03-04 19:56:15 -05:00
|
|
|
|
2008-08-08 14:00:33 -04:00
|
|
|
# You need the textproc/glimpse ports for this.
|
|
|
|
|
glimpse:
|
2008-08-15 10:11:30 -04:00
|
|
|
.if !exists(${.CURDIR}/.glimpse_exclude)
|
|
|
|
|
echo .svn > ${.CURDIR}/.glimpse_exclude
|
|
|
|
|
echo /compile/ >> ${.CURDIR}/.glimpse_exclude
|
|
|
|
|
.endif
|
2008-08-08 14:00:33 -04:00
|
|
|
cd ${.CURDIR}; glimpseindex -H . -B -f -o .
|
|
|
|
|
|
|
|
|
|
glimpse-clean:
|
|
|
|
|
cd ${.CURDIR}; rm -f .glimpse_*
|
|
|
|
|
|
1994-05-28 00:10:32 -04:00
|
|
|
.include <bsd.subdir.mk>
|