summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid McCullough <davidm@snapgear.com>2002-01-17 06:06:54 +0000
committerDavid McCullough <davidm@snapgear.com>2002-01-17 06:06:54 +0000
commit47e0a8060499c822772437a3ca1765297857c131 (patch)
tree830367474f56b50cebc98336a282e98258966ae0
parent0dd9fe33ab1a23585d6acd89817cde20371f991f (diff)
Clean up builds on "sh" to use the right ARCH dirs
-rw-r--r--Rules.mak24
1 files changed, 18 insertions, 6 deletions
diff --git a/Rules.mak b/Rules.mak
index 2093d4285..68beb93b5 100644
--- a/Rules.mak
+++ b/Rules.mak
@@ -36,13 +36,25 @@ LIBC=$(TOPDIR)libc/libc.a
BUILDTIME = ${shell TZ=UTC date --utc "+%Y.%m.%d-%H:%M%z"}
GCCINCDIR = ${shell $(CC) -print-search-dirs | sed -ne "s/install: \(.*\)/\1include/gp"}
-NATIVE_ARCH = ${shell uname -m | sed -e 's/i.86/i386/' -e 's/sparc.*/sparc/' \
- -e 's/arm.*/arm/g' -e 's/m68k.*/m68k/' -e 's/ppc/powerpc/g' \
- -e 's/v850.*/v850/g'}
+NATIVE_ARCH = ${shell uname -m | sed \
+ -e 's/i.86/i386/' \
+ -e 's/sparc.*/sparc/' \
+ -e 's/arm.*/arm/g' \
+ -e 's/m68k.*/m68k/' \
+ -e 's/ppc/powerpc/g' \
+ -e 's/v850.*/v850/g' \
+ -e 's/sh[234]/sh/' \
+ }
ifeq ($(strip $(TARGET_ARCH)),)
-TARGET_ARCH=${shell $(CC) -dumpmachine | sed -e s'/-.*//' -e 's/i.86/i386/' -e 's/sparc.*/sparc/' \
- -e 's/arm.*/arm/g' -e 's/m68k.*/m68k/' -e 's/ppc/powerpc/g' \
- -e 's/v850.*/v850/g'}
+TARGET_ARCH=${shell $(CC) -dumpmachine | sed -e s'/-.*//' \
+ -e 's/i.86/i386/' \
+ -e 's/sparc.*/sparc/' \
+ -e 's/arm.*/arm/g' \
+ -e 's/m68k.*/m68k/' \
+ -e 's/ppc/powerpc/g' \
+ -e 's/v850.*/v850/g' \
+ -e 's/sh[234]/sh/' \
+ }
endif
# Some nice architecture specific optimizations