aboutsummaryrefslogtreecommitdiff
path: root/sys/Makefile
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2012-01-03 17:31:27 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2012-01-03 17:31:27 +0000
commitdebfd27f8ece9f8c17e9308cb1d3a5c6f3bf4c71 (patch)
treef8d004893d1095dd5bb79f2d02c29090657da7e2 /sys/Makefile
parent2cb9ba56caa5ee24cabf7386d7eee3c5a611b4b6 (diff)
downloadsrc-debfd27f8ece9f8c17e9308cb1d3a5c6f3bf4c71.tar.gz
src-debfd27f8ece9f8c17e9308cb1d3a5c6f3bf4c71.zip
Improve the cscope target's handling of MD directories. Automatically
include the MACHINE_CPUARCH directory if it differents from MACHINE when building an index for a single machine. Also, include the 'x86' directory when building an index for i386, pc98, or amd64. MFC after: 1 week
Notes
Notes: svn path=/head/; revision=229400
Diffstat (limited to 'sys/Makefile')
-rw-r--r--sys/Makefile12
1 files changed, 10 insertions, 2 deletions
diff --git a/sys/Makefile b/sys/Makefile
index 969994f80ae9..a1a67ca5fcc0 100644
--- a/sys/Makefile
+++ b/sys/Makefile
@@ -13,10 +13,18 @@ CSCOPEDIRS= boot bsm cam cddl compat conf contrib crypto ddb dev fs gdb \
netgraph netinet netinet6 netipsec netipx netnatm netncp \
netsmb nfs nfsclient nfsserver nlm opencrypto \
pci rpc security sys ufs vm xdr xen ${CSCOPE_ARCHDIR}
+.if !defined(CSCOPE_ARCHDIR)
.if defined(ALL_ARCH)
-CSCOPE_ARCHDIR ?= amd64 arm i386 ia64 mips pc98 powerpc sparc64 x86
+CSCOPE_ARCHDIR = amd64 arm i386 ia64 mips pc98 powerpc sparc64 x86
.else
-CSCOPE_ARCHDIR ?= ${MACHINE}
+CSCOPE_ARCHDIR = ${MACHINE}
+.if ${MACHINE} != ${MACHINE_CPUARCH}
+CSCOPE_ARCHDIR += ${MACHINE_CPUARCH}
+.endif
+.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
+CSCOPE_ARCHDIR += x86
+.endif
+.endif
.endif
# Loadable kernel modules