diff options
author | allen <allen@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2004-03-23 18:49:08 +0000 |
---|---|---|
committer | allen <allen@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2004-03-23 18:49:08 +0000 |
commit | f21bc20681c2def9734f5e96fc6513bc3e42f51d (patch) | |
tree | d4cc3dbc3876316dab9136db1761acdda75b28e9 /lib/make/known-architectures/darwin | |
parent | 4ac27e375df76d4b1814710b361c73b41145ded1 (diff) |
Tidying darwin knownarchitectures. Removing all previous versions of darwin since they were not incorporated in a single file and are of unknown status. Previous versions will be added back properly on request.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@3597 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'lib/make/known-architectures/darwin')
-rw-r--r-- | lib/make/known-architectures/darwin | 169 |
1 files changed, 116 insertions, 53 deletions
diff --git a/lib/make/known-architectures/darwin b/lib/make/known-architectures/darwin index e5200f49..d1e0b30a 100644 --- a/lib/make/known-architectures/darwin +++ b/lib/make/known-architectures/darwin @@ -1,80 +1,142 @@ #! /bin/sh # /*@@ -# @file darwin -# @date Thu 10 May 2001 -# @author Thomas Radke +# @file darwin6.8 +# @date Mon 6 Oct 2003 +# @author John Shalf # @desc -# Known architecture stuff for MacOS X (Darwin) +# Known architecture stuff for MacOS X (Darwin) release 6.8 # @enddesc -# @version $Header: /mnt/data2/cvs2svn/cvs-repositories/Cactus/lib/make/known-architectures/darwin,v 1.7 2003-04-02 14:57:23 goodale Exp $ +# @version $Header: /mnt/data2/cvs2svn/cvs-repositories/Cactus/lib/make/known-architectures/darwin,v 1.8 2004-03-23 18:49:08 allen Exp $ # @@*/ if test "$CCTK_CONFIG_STAGE" = 'preferred-compilers' ; then : +elif test -n "$IBMXL" && test "$IBMXL" = 'yes' ; then + echo "Configuring environment for IBM XL compilers" + CC=xlc + CXX=xlC + F90=xlf + F90=xlf + LD=xlC + : ${ARFLAGS='-rucs'} + : ${F90FLAGS='-qspill=10000 -qmaxmem=-1 -qnullterm'} + : ${F77FLAGS='-qfixed -qmaxmem=-1 -qnullterm'} + : ${F90_OPTIMISE_FLAGS='-O5'} + : ${F77_OPTIMISE_FLAGS='-O5'} + : ${F90_DEBUG_FLAGS='-g'} + : ${F77_DEBUG_FLAGS='-g'} + : ${CFLAGS='-qspill=17000 -qmaxmem=-1'} + : ${CXXFLAGS='-qspill=10000 -qmaxmem=-1'} + : ${C_OPTIMISE_FLAGS='-O5'} + : ${CXX_OPTIMISE_FLAGS='-O5'} + : ${F90_SUFFIX='f'} + if test -e '/usr/lib/gcc/darwin/3.3' ; then + C_DEPEND='gcc -M -no-cpp-precomp $(CPPFLAGS)' + CXX_DEPEND='g++ -E -M $(CPPFLAGS)' + F_DEPEND='$(CPP) -M $(CPPFLAGS)' + F77_DEPEND='$(CPP) -M $(CPPFLAGS)' + else + C_DEPEND='$(PERL) $(CCTK_HOME)/lib/sbin/cpp.pl -M $(CPPFLAGS)' + CXX_DEPEND='$(PERL) $(CCTK_HOME)/lib/sbin/cpp.pl -M $(CPPFLAGS)' + F_DEPEND='$(PERL) $(CCTK_HOME)/lib/sbin/cpp.pl -M $(CPPFLAGS)' + fi + : ${LD='xlC'} + : ${LIBS='xlf90 xlfmath m'} + : ${LIBDIRS='/opt/ibmcmp/lib'} + else # this fixes some darwin-specific preprocessor bugs (?) CFLAGS='-no-cpp-precomp' - C_DEPEND='$(CC) -M $(CFLAGS) $(CPPFLAGS)' - + # C_DEPEND='$(CC) -M $(CFLAGS) $(CPPFLAGS)' + if test -e '/usr/lib/gcc/darwin/3.3' ; then + C_DEPEND='gcc -M -no-cpp-precomp $(CPPFLAGS)' + CXX_DEPEND='g++ -E -M $(CPPFLAGS)' + F_DEPEND='$(CPP) -M $(CPPFLAGS)' + F77_DEPEND='$(CPP) -M $(CPPFLAGS)' + else + C_DEPEND='$(PERL) $(CCTK_HOME)/lib/sbin/cpp.pl -M $(CPPFLAGS)' + CXX_DEPEND='$(PERL) $(CCTK_HOME)/lib/sbin/cpp.pl -M $(CPPFLAGS)' + F_DEPEND='$(PERL) $(CCTK_HOME)/lib/sbin/cpp.pl -M $(CPPFLAGS)' + FPP='$(PERL) $(CCTK_HOME)/lib/sbin/cpp.pl -M $(CPPFLAGS)' + fi # 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 -n "$F90" && test "$F90" != 'none' ; then +# this should really check the path of the IBM compiler +# to make sure it is the default +# should use a regexp to match the compiler path + if test `which f90` = '/opt/ibmcmp/xlf/8.1/bin/f90' ; then + MAC_F90_COMP=ibm + F90=xlf + F77=xlf + else + MAC_F90_COMP=absoft + fi + elif test -n "$F77" ; then if test "`$F77 -? 2>&1 | grep -i absoft`" ; then - MAC_F77_COMP=absoft77 + 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 ... + echo Unknown MacOS X f77 compiler. + echo Please add appropriate information to + echo $srcdir/known-architectures/darwin + echo and send the updated file to CactusMaint + echo We will try anyway ... fi fi #Set the appropriate flags case "$MAC_F90_COMP" in - absoft) -# : ${F90FLAGS='-N11'} - : ${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 Darwin f90 compiler. - echo Please add appropriate information to - echo $srcdir/known-architectures/darwin - echo and send the updated file to CactusMaint - echo We will try anyway ... - ;; - esac + 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'} + ;; + ibm) + : ${LD='xlC'} + : ${LIBS='xlf90 xlfmath m'} + : ${LIBDIRS='/opt/ibmcmp/lib'} + : ${ARFLAGS='-rucs'} + : ${F90FLAGS=' -k -qspill=10000 -qmaxmem=-1 -qnullterm'} + : ${F77FLAGS='-qfixed -qmaxmem=-1 -qnullterm'} + : ${F90_OPTIMISE_FLAGS='-O5'} + : ${F77_OPTIMISE_FLAGS='-O5'} + : ${F90_SUFFIX='f'} + ;; + none) + : ${LIBS='m'} + ;; + *) + echo Unknown Darwin f90 compiler. + echo Please add appropriate information to + echo $srcdir/known-architectures/darwin + 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 @@ -87,3 +149,4 @@ else # This is caught later on by lib/make/extras/MPI/NATIVE. fi + |