Back to home page

MITgcm

 
 

    


Warning, /tools/build_options/unsupported/sunos_sparc_sunf90+mth is written in an unsupported language. File is not indexed.

view on githubraw file Latest commit add29e06 on 2018-01-31 20:35:05 UTC
6a8af2f257 Cons*0001 #!/bin/bash
                0002 #
                0003 FC=f77
                0004 F90C=f90
                0005 CC=cc
                0006 LINK=${F90C}
                0007 FC_NAMEMANGLE="#define FC_NAMEMANGLE(X) X ## _"
                0008 DEFINES='-DWORDLENGTH=4 -DUSE_OMP_THREADING'
                0009 CPP='/usr/ccs/lib/cpp -P'
                0010 NOOPTFLAGS='-O0 -g -m32 -u -r8const -xopenmp=noopt'
                0011 NOOPTFILES=''
                0012 EXTENDED_SRC_FLAG='-e'
                0013 
                0014 if test "x$DEVEL" != x ; then
                0015     FFLAGS='-u -r8const -g -xs -C -xcommonchk -xcheck=init_local -fpover -xopenmp=noopt'
                0016 else
                0017     FFLAGS='-u -r8const -xopenmp'
                0018 fi
                0019 
                0020 if test "x$IEEE" = x ; then
                0021     #  No need for IEEE-754
                0022     FOPTIM='-fast -m32 -xvector=lib -xpad=local'
                0023     LIBS="$LIBS -lmopt -lsunmath"
                0024 else
                0025     #  Try to follow IEEE-754
                0026 #    FOPTIM='-O0 -m32'
                0027     FOPTIM='-fast -m32 -xpad=local -fsimple=1'
                0028 fi
                0029 F90FLAGS=$FFLAGS
                0030 F90OPTIM=$FOPTIM
                0031 CFLAGS='-O3 -m32 -xopenmp'
                0032 
                0033 if [ "x$NETCDF_ROOT" != x ] ; then
                0034     INCLUDEDIR="${NETCDF_ROOT}/include"
                0035     INCLUDES="-I${NETCDF_ROOT}/include"
                0036     LIBDIR="${NETCDF_ROOT}/lib"
                0037     LIBS="-L${NETCDF_ROOT}/lib"
                0038 elif [ "x$NETCDF_HOME" != x ]; then
                0039     INCLUDEDIR="${NETCDF_HOME}/include"
                0040     INCLUDES="-I${NETCDF_HOME}/include"
                0041     LIBDIR="${NETCDF_HOME}/lib"
                0042     LIBS="-L${NETCDF_HOME}/lib"
                0043 elif [ "x$NETCDF_INC" != x -a "x$NETCDF_LIB" != x ]; then
                0044     NETCDF_INC=`echo $NETCDF_INC | sed 's/-I//g'`
                0045     NETCDF_LIB=`echo $NETCDF_LIB | sed 's/-L//g'`
                0046     INCLUDEDIR="${NETCDF_INC}"
                0047     INCLUDES="-I${NETCDF_INC}"
                0048     LIBDIR="${NETCDF_LIB}"
                0049     LIBS="-L${NETCDF_LIB}"
                0050 elif [ "x$NETCDF_INCDIR" != x -a "x$NETCDF_LIBDIR" != x ]; then
                0051     INCLUDEDIR="${NETCDF_INCDIR}"
                0052     INCLUDES="-I${NETCDF_INCDIR}"
                0053     LIBDIR="${NETCDF_LIBDIR}"
                0054     LIBS="-L${NETCDF_LIBDIR}"
                0055 elif test -d /usr/include/netcdf ; then
                0056     INCLUDES='-I/usr/include/netcdf'
                0057 elif test -d /usr/local/netcdf ; then
                0058     INCLUDES='-I/usr/local/netcdf/include'
                0059     LIBS='-L/usr/local/netcdf/lib'
                0060 elif test -d /usr/local/include/netcdf.inc ; then
                0061     INCLUDES='-I/usr/local/include'
                0062     LIBS='-L/usr/local/lib'
                0063 fi
                0064