Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/xlint Make mips64e[bl] check more generic.



details:   https://anonhg.NetBSD.org/src/rev/edde0d68d4c3
branches:  trunk
changeset: 784430:edde0d68d4c3
user:      matt <matt%NetBSD.org@localhost>
date:      Mon Jan 28 14:25:18 2013 +0000

description:
Make mips64e[bl] check more generic.

diffstat:

 usr.bin/xlint/Makefile.inc |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (23 lines):

diff -r 0a037557a597 -r edde0d68d4c3 usr.bin/xlint/Makefile.inc
--- a/usr.bin/xlint/Makefile.inc        Mon Jan 28 14:09:43 2013 +0000
+++ b/usr.bin/xlint/Makefile.inc        Mon Jan 28 14:25:18 2013 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.inc,v 1.12 2010/03/22 05:12:24 mrg Exp $
+#      $NetBSD: Makefile.inc,v 1.13 2013/01/28 14:25:18 matt Exp $
 
 WARNS?=                3       # XXX: fails -Wsign-compare
 
@@ -8,10 +8,10 @@
 
 # Special cases first, then check for a MACHINE_ARCH specific
 # subdir before looking for MACHINE_CPU.
-.if ${MACHINE_ARCH} == "mips64eb" || ${MACHINE_ARCH} == "mips64el"
-ARCHSUBDIR=    mips64
-.elif exists(${.CURDIR}/../arch/${MACHINE_ARCH})
+.if exists(${.CURDIR}/../arch/${MACHINE_ARCH})
 ARCHSUBDIR=    ${MACHINE_ARCH}
+.elif exists(${.CURDIR}/../arch/${MACHINE_ARCH:C/e[lb]$//})
+ARCHSUBDIR=    ${MACHINE_ARCH:C/e[lb]$//}
 .else
 ARCHSUBDIR=    ${MACHINE_CPU}
 .endif



Home | Main Index | Thread Index | Old Index