diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2012-01-13 19:13:43 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2012-01-13 19:13:43 +0000 |
| commit | f30582b9297e8b22d93261eeff44d46f2225b061 (patch) | |
| tree | 649a9f1cb217c0e1a4a7d63767ee5fee9fcb67fa /sys/Makefile | |
| parent | 9719395f8700316d087560e0af985abef17e5a10 (diff) | |
Notes
Diffstat (limited to 'sys/Makefile')
| -rw-r--r-- | sys/Makefile | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/sys/Makefile b/sys/Makefile index cb5fd13164b4..a322785e3f47 100644 --- a/sys/Makefile +++ b/sys/Makefile @@ -12,11 +12,19 @@ CSCOPEDIRS= boot bsm cam cddl compat conf contrib crypto ddb dev fs gdb \ geom gnu isa kern libkern modules net net80211 netatalk \ netgraph netinet netinet6 netipsec netipx netnatm netncp \ netsmb nfs nfsclient nfsserver nlm opencrypto \ - pci rpc security sys ufs vm xdr ${CSCOPE_ARCHDIR} + 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 sun4v +CSCOPE_ARCHDIR = amd64 arm i386 ia64 mips pc98 powerpc sparc64 sun4v x86 .else -CSCOPE_ARCHDIR ?= ${MACHINE} +CSCOPE_ARCHDIR = ${MACHINE} +.if ${MACHINE} != ${MACHINE_ARCH} +CSCOPE_ARCHDIR += ${MACHINE_ARCH} +.endif +.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "amd64" +CSCOPE_ARCHDIR += x86 +.endif +.endif .endif # Loadable kernel modules @@ -34,7 +42,7 @@ cscope.out: ${.CURDIR}/cscope.files ${.CURDIR}/cscope.files: .PHONY cd ${.CURDIR}; \ - find ${CSCOPEDIRS} -name "*.[chSs]" -a -type f > ${.TARGET} + find ${CSCOPEDIRS} -name "*.[chSsly]" -a -type f > ${.TARGET} cscope-clean: rm -f cscope.files cscope.out cscope.in.out cscope.po.out |
