summaryrefslogtreecommitdiff
path: root/Makefile.cross
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2005-01-28 19:51:48 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2005-01-28 19:51:48 +0000
commit5537e435466a0b8706a086b9ec24b01e4f3444f1 (patch)
tree075b9c606e27d471d3fa125bf0f8af1e772a0de0 /Makefile.cross
parent991ab6550b22cfc797e0586bc378d6efab4ef024 (diff)
match gcc3 logic from bsd.own.mk and add a target_arch generation for arm
Diffstat (limited to 'Makefile.cross')
-rw-r--r--Makefile.cross15
1 files changed, 8 insertions, 7 deletions
diff --git a/Makefile.cross b/Makefile.cross
index 0a6b4b277f3..e81c1afa911 100644
--- a/Makefile.cross
+++ b/Makefile.cross
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.cross,v 1.5 2005/01/20 21:35:07 grange Exp $
+# $OpenBSD: Makefile.cross,v 1.6 2005/01/28 19:51:47 mickey Exp $
cross-tools: cross-includes cross-binutils cross-gcc cross-lib
cross-distrib: cross-tools cross-bin cross-etc-root-var
@@ -67,6 +67,8 @@ ${CROSSDIRS}:
echo powerpc ;;\
sgi) \
echo mips64 ;;\
+ cats|zaurus) \
+ echo arm ;;\
*) \
(echo Unknown arch ${TARGET} >&2) ; exit 1;; \
esac > ${CROSSDIR}/TARGET_ARCH
@@ -185,13 +187,12 @@ ${CROSSBINUTILS}: ${CROSSINCLUDES}
@touch ${CROSSBINUTILS}
# bsd.own.mk can't do it for us
-.if ${TARGET} == "amd64" || ${TARGET} == "cats" || \
- ${TARGET} == "hppa" || ${TARGET} == "hppa64" || \
- ${TARGET} == "i386" || \
- ${TARGET} == "sparc64" || ${TARGET} == "sgi"
-TARGET_USE_GCC3=Yes
-.else
+.if ${MACHINE_ARCH} == "alpha" || \
+ ${MACHINE_ARCH} == "m68k" || ${MACHINE_ARCH} == "m88k" || \
+ ${MACHINE_ARCH} == "sparc" || ${MACHINE_ARCH} == "vax"
TARGET_USE_GCC3=No
+.else
+TARGET_USE_GCC3=Yes
.endif
${CROSSGCC}: ${CROSSBINUTILS}