summaryrefslogtreecommitdiff
path: root/lib/make/known-architectures/irix
diff options
context:
space:
mode:
authorgoodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac>1999-02-25 18:42:12 +0000
committergoodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac>1999-02-25 18:42:12 +0000
commitb7c7e3b466e1407dc98e3e6f29fb29485ceb4328 (patch)
tree6a0aa67100e0d495ce06b47fb06dfaf68762cbaf /lib/make/known-architectures/irix
parent1be32274febe68fb80382847f28f28d84e6e0cea (diff)
Prototype irix configuration files.
Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@348 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'lib/make/known-architectures/irix')
-rw-r--r--lib/make/known-architectures/irix54
1 files changed, 54 insertions, 0 deletions
diff --git a/lib/make/known-architectures/irix b/lib/make/known-architectures/irix
new file mode 100644
index 00000000..f69c71a2
--- /dev/null
+++ b/lib/make/known-architectures/irix
@@ -0,0 +1,54 @@
+#! /bin/sh
+# /*@@
+# @file irix
+# @date Thu Feb 25 12:20:53 1999
+# @author Tom Goodale
+# @desc
+#
+# @enddesc
+# @version $Header: /mnt/data2/cvs2svn/cvs-repositories/Cactus/lib/make/known-architectures/irix,v 1.1 1999-02-25 18:42:12 goodale Exp $
+# @@*/
+
+IRIX_CPU="hinv | grep CPU | sed 's/^[^R]*R\([01-9]*\).*$/\1/'"
+
+case "$IRIX_CPU:$CC" in
+ 10000:gcc)
+ CFLAGS="$CFLAGS -mips4"
+ ;;
+ 10000:cc)
+ CFLAGS="$CFLAGS -O3 -64 -mips4 -r10000"
+ CXXFLAGS="$CFLAGS -O2 -64 -mips4 -r10000"
+ ;;
+ *)
+ ;;
+esac
+
+case "$IRIX_CPU:$CC" in
+ 10000:c++)
+ CXXFLAGS="$CXXFLAGS -mips4"
+ ;;
+ *)
+ ;;
+esac
+
+case "$IRIX_CPU" in
+ 10000)
+ F90FLAGS="$F90FLAGS -O3 \
+ -OPT:roundoff=3:IEEE_arithmetic=3:const_copy_limit=100000 \
+ -r10000 -TARG:proc=r10000 \
+ -64 -mips4"
+ F77FLAGS="$F90FLAGS"
+ ;;
+ *)
+ ;;
+esac
+
+case "$IRIX_CPU:$LD" in
+ 10000:c++)
+ LDFLAGS="$LDFLAGS -mips4"
+ 10000:CC)
+ LDFLAGS="$LDFLAGS -64 -Wl,\"-woff 84\",\"-woff 85\""
+ ;;
+ *)
+ ;;
+esac