summaryrefslogtreecommitdiff
path: root/lib/make
diff options
context:
space:
mode:
authorallen <allen@17b73243-c579-4c4c-a9d2-2d5706c11dac>2001-09-18 16:37:32 +0000
committerallen <allen@17b73243-c579-4c4c-a9d2-2d5706c11dac>2001-09-18 16:37:32 +0000
commit52220850c331cc3561c71ff4c2e5488487b6db53 (patch)
tree9dc4f30df0e2516316778ddd3ab3a0e795c5b50e /lib/make
parent2d3263ac23a7ed841fd4b1ae09ee787f6892c2d0 (diff)
Added Absoft fortran f77/f90 fortran compilers for MacOSX
(Need to add detection that the compiler *is* Absoft, but haven't found any version information yet) git-svn-id: http://svn.cactuscode.org/flesh/trunk@2367 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'lib/make')
-rw-r--r--lib/make/known-architectures/darwin59
-rw-r--r--lib/make/known-architectures/darwin1.3.712
2 files changed, 70 insertions, 1 deletions
diff --git a/lib/make/known-architectures/darwin b/lib/make/known-architectures/darwin
index 1410ec46..13e6f3ea 100644
--- a/lib/make/known-architectures/darwin
+++ b/lib/make/known-architectures/darwin
@@ -6,7 +6,7 @@
# @desc
# Known architecture stuff for MacOS X (Darwin)
# @enddesc
-# @version $Header: /mnt/data2/cvs2svn/cvs-repositories/Cactus/lib/make/known-architectures/darwin,v 1.1 2001-05-13 22:50:43 tradke Exp $
+# @version $Header: /mnt/data2/cvs2svn/cvs-repositories/Cactus/lib/make/known-architectures/darwin,v 1.2 2001-09-18 16:37:32 allen Exp $
# @@*/
if test "$CCTK_CONFIG_STAGE" = "preferred-compilers" ; then
@@ -15,6 +15,62 @@ if test "$CCTK_CONFIG_STAGE" = "preferred-compilers" ; then
else
+# Determine which Fortran 90 compiler is in use
+ MAC_F90_COMP=none
+
+ if test -n "$F90" && test "$F90" != "none" ; then
+ MAC_F90_COMP=absoft
+ elif test -n "$F77" ; then
+ if test "`$F77 -? 2>&1 | grep -i absoft`" ; then
+ MAC_F77_COMP=absoft77
+ else
+ echo Unknown MacOS X f77 compiler.
+ echo Please add appropriate information to
+ echo $srcdir/known-architectures/darwin
+ echo ad send the updated file to CactusMaint
+ echo We will try anyway ...
+ fi
+ fi
+
+#Set the appropriate flags
+ case "$MAC_F90_COMP" in
+ absoft)
+ : ${LIBS="f90math fio f77math m"}
+ : ${F90_OPTIMISE_FLAGS="-s -O"}
+ : ${F77_OPTIMISE_FLAGS="-s -O"}
+ # Test if it is a version of the absoft compiler which has the library in a custom place.
+ if test -n "$ABSOFT" ; then
+ : ${LIBDIRS='$(ABSOFT)/lib'}
+ fi
+ : ${F77_DEBUG_FLAGS="-g"}
+ : ${F90_DEBUG_FLAGS="-g"}
+ : ${F77_WARN_FLAGS="-m0"}
+ : ${F90_WARN_FLAGS="-m0"}
+ ;;
+ absoft77)
+ : ${LIBS="fio f77math m"}
+ F90FLAGS="-f"
+ # Test if it is a version of the absoft compiler which has the library in a custom place.
+ if test -n "$ABSOFT" ; then
+ : ${LIBDIRS='$(ABSOFT)/lib'}
+ fi
+ : ${F77_DEBUG_FLAGS="-g"}
+ : ${F90_DEBUG_FLAGS="-g"}
+ : ${F77_WARN_FLAGS="-m0"}
+ : ${F90_WARN_FLAGS="-m0"}
+ ;;
+ none)
+ : ${LIBS="m"}
+ ;;
+ *)
+ echo Unknown Linux f90 compiler.
+ echo Please add appropriate information to
+ echo $srcdir/known-architectures/linux-gnu
+ echo and send the updated file to CactusMaint
+ echo We will try anyway ...
+ ;;
+ esac
+
# Darwin's ar command doesn't understand the '-s' flag
# so we have to use ranlib to add a table of contents to libraries
: ${ARFLAGS='ruc'}
@@ -26,3 +82,4 @@ else
# This is caught later on by lib/make/extras/MPI/NATIVE.
fi
+
diff --git a/lib/make/known-architectures/darwin1.3.7 b/lib/make/known-architectures/darwin1.3.7
new file mode 100644
index 00000000..b745e9cd
--- /dev/null
+++ b/lib/make/known-architectures/darwin1.3.7
@@ -0,0 +1,12 @@
+#! /bin/sh
+# /*@@
+# @file darwin1.3.7
+# @date Sept 17 2001
+# @author Gabrielle Allen
+# @desc
+# Known architecture stuff for MacOS X (Darwin1.3.7)
+# @enddesc
+# @version $Header$
+# @@*/
+
+. $srcdir/known-architectures/darwin