summaryrefslogtreecommitdiffstats
path: root/usr.bin/xlint
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2010-09-13 01:00:48 +0000
committerimp <imp@FreeBSD.org>2010-09-13 01:00:48 +0000
commit39270288cab094acf7ff038b1199bc142d4f1894 (patch)
tree2152053d1febccf23418b36eee309c3d42fd0ce5 /usr.bin/xlint
parent825ac700e57aa6ea2ba53a952e56af85aef7826f (diff)
downloadFreeBSD-src-39270288cab094acf7ff038b1199bc142d4f1894.zip
FreeBSD-src-39270288cab094acf7ff038b1199bc142d4f1894.tar.gz
Move to using TARGET_CPUARCH instead of TARGET_ARCH.
Diffstat (limited to 'usr.bin/xlint')
-rw-r--r--usr.bin/xlint/Makefile.inc10
1 files changed, 9 insertions, 1 deletions
diff --git a/usr.bin/xlint/Makefile.inc b/usr.bin/xlint/Makefile.inc
index 0c1b97a..f4956ab 100644
--- a/usr.bin/xlint/Makefile.inc
+++ b/usr.bin/xlint/Makefile.inc
@@ -5,8 +5,16 @@ WARNS?= 0
.PATH: ${.CURDIR}/../common
+# These assignments duplicate much of the functionality of
+# MACHINE_CPUARCH, but there's no easy way to export make functions...
+
+.if defined(TARGET_ARCH)
+TARGET_CPUARCH=${TARGET_ARCH:C/mipse[bl]/mips/:C/armeb/arm/}
+.else
+TARGET_CPUARCH=${MACHINE_CPUARCH}
+.endif
TARGET_ARCH?= ${MACHINE_ARCH}
-CFLAGS+= -I${.CURDIR}/../arch/${TARGET_ARCH}
+CFLAGS+= -I${.CURDIR}/../arch/${TARGET_CPUARCH}
CFLAGS+= -I${.CURDIR}/../common
OBJECT_FMT= ELF
OpenPOWER on IntegriCloud