svn commit: r279907 - head/usr.bin/xlint
Warner Losh
imp at FreeBSD.org
Thu Mar 12 08:32:25 UTC 2015
Author: imp
Date: Thu Mar 12 08:32:24 2015
New Revision: 279907
URL: https://svnweb.freebsd.org/changeset/base/279907
Log:
TARGET_* shouldn't be used here. Use MACHINE_* instead.
Modified:
head/usr.bin/xlint/Makefile.inc
Modified: head/usr.bin/xlint/Makefile.inc
==============================================================================
--- head/usr.bin/xlint/Makefile.inc Thu Mar 12 08:32:22 2015 (r279906)
+++ head/usr.bin/xlint/Makefile.inc Thu Mar 12 08:32:24 2015 (r279907)
@@ -5,18 +5,10 @@ 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/mips(n32|64)?(el)?/mips/:C/arm(v6)?(eb|hf)?/arm/}
+.if exists(${.CURDIR}/../arch/${MACHINE_ARCH})
+CFLAGS+= -I${.CURDIR}/../arch/${MACHINE_ARCH}
.else
-TARGET_CPUARCH= ${MACHINE_CPUARCH}
-TARGET_ARCH= ${MACHINE_ARCH}
-.endif
-.if exists(${.CURDIR}/../arch/${TARGET_ARCH})
-CFLAGS+= -I${.CURDIR}/../arch/${TARGET_ARCH}
-.else
-CFLAGS+= -I${.CURDIR}/../arch/${TARGET_CPUARCH}
+CFLAGS+= -I${.CURDIR}/../arch/${MACHINE_CPUARCH}
.endif
CFLAGS+= -I${.CURDIR}/../common
More information about the svn-src-all
mailing list