[uClibc-cvs] uClibc/test Rules.mak,1.18,1.19

Erik Andersen andersen at codepoet.org
Thu Nov 28 03:06:11 UTC 2002


Update of /var/cvs/uClibc/test
In directory winder:/tmp/cvs-serv18549

Modified Files:
	Rules.mak 
Log Message:
Fix compilation on mips


Index: Rules.mak
===================================================================
RCS file: /var/cvs/uClibc/test/Rules.mak,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -d -r1.18 -r1.19
--- Rules.mak	31 Oct 2002 20:04:06 -0000	1.18
+++ Rules.mak	28 Nov 2002 03:06:07 -0000	1.19
@@ -12,7 +12,7 @@
 
 # Use NATIVE_ARCH here since running these test is not
 # even possible when cross compiling...
-NATIVE_ARCH:= ${shell uname -m | sed \
+NATIVE_ARCH:= $(shell uname -m | sed \
 		-e 's/i.86/i386/' \
 		-e 's/sparc.*/sparc/' \
 		-e 's/arm.*/arm/g' \
@@ -21,9 +21,9 @@
 		-e 's/v850.*/v850/g' \
 		-e 's/sh[234].*/sh/' \
 		-e 's/mips.*/mips/' \
-		}
+		)
 ifeq ($(strip $(TARGET_ARCH)),)
-TARGET_ARCH:=${shell $(CC) -dumpmachine | sed -e s'/-.*//' \
+TARGET_ARCH:=$(shell $(CC) -dumpmachine | sed -e s'/-.*//' \
 		-e 's/i.86/i386/' \
 		-e 's/sparc.*/sparc/' \
 		-e 's/arm.*/arm/g' \
@@ -31,10 +31,12 @@
 		-e 's/ppc/powerpc/g' \
 		-e 's/v850.*/v850/g' \
 		-e 's/sh[234]/sh/' \
-		-e 's/mips.*/mips/' \
-		}
+		-e 's/mips-.*/mips/' \
+		-e 's/mipsel-.*/mipsel/' \
+		-e 's/cris.*/cris/' \
+		)
 endif
-
+export TARGET_ARCH
 
 # If you are running a cross compiler, you may want to set this
 # to something more interesting...




More information about the uClibc-cvs mailing list