Warning, /tools/build_options/unsupported/linux_amd64_open64+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
6c257dab34 Cons*0001 #!/bin/bash
0002 #
0003 #
0004 # Multithreaded tests require
0005 # export PSC_OMP_STACK_SIZE=400m
0006 # export OMP_NUM_THREADS=2
0007 #
0008
0009 CC=opencc
0010 FC=openf90
0011 LD=openf90
0012 DEFINES='-DWORDLENGTH=4 -DUSE_OMP_THREADING'
0013 CPP='cpp -traditional -P'
0014 MAKEDEPEND=/usr/X11R6/bin/makedepend
0015 NOOPTFLAGS='-O0 -m64 -g -fPIC -openmp'
0016 NOOPTFILES=''
0017
0018 if test "x$DEVEL" != x ; then
0019 FFLAGS='-m64 -convert big_endian -fPIC -openmp -ffortran-bounds-check -trapuv -g'
0020 else
0021 FFLAGS='-m64 -convert big_endian -fPIC -openmp'
0022 fi
0023
0024 if test "x$IEEE" = x ; then
0025 # No need for IEEE-754
0026 FOPTIM='-O3 -LNO:fusion=2 -OPT:roundoff=1:IEEE_arithmetic=3 -OPT:early_mp=ON
0027 ' # -funsafe-math-optimizations'
0028 else
0029 # Try to follow IEEE-754
0030 FOPTIM='-O3 -LNO:fusion=2 -OPT:roundoff=0:IEEE_arithmetic=1 -fmath-errno -fno-fast-math -OPT:early_mp=ON'
0031 fi
0032
0033 F90FLAGS=$FFLAGS
0034 F90OPTIM=$FOPTIM
0035 CFLAGS='-O3 -m64 -fPIC -openmp'
0036 GSLLIB='-lgsl -lgslcblas'
0037
0038 if [ "x$NETCDF_ROOT" != x ] ; then
0039 INCLUDEDIR="${NETCDF_ROOT}/include"
0040 INCLUDES="-I${NETCDF_ROOT}/include"
0041 LIBDIR="${NETCDF_ROOT}/lib"
0042 LIBS="-L${NETCDF_ROOT}/lib"
0043 elif [ "x$NETCDF_HOME" != x ]; then
0044 INCLUDEDIR="${NETCDF_HOME}/include"
0045 INCLUDES="-I${NETCDF_HOME}/include"
0046 LIBDIR="${NETCDF_HOME}/lib"
0047 LIBS="-L${NETCDF_HOME}/lib"
0048 elif [ "x$NETCDF_INC" != x -a "x$NETCDF_LIB" != x ]; then
0049 NETCDF_INC=`echo $NETCDF_INC | sed 's/-I//g'`
0050 NETCDF_LIB=`echo $NETCDF_LIB | sed 's/-L//g'`
0051 INCLUDEDIR="${NETCDF_INC}"
0052 INCLUDES="-I${NETCDF_INC}"
0053 LIBDIR="${NETCDF_LIB}"
0054 LIBS="-L${NETCDF_LIB}"
0055 elif [ "x$NETCDF_INCDIR" != x -a "x$NETCDF_LIBDIR" != x ]; then
0056 INCLUDEDIR="${NETCDF_INCDIR}"
0057 INCLUDES="-I${NETCDF_INCDIR}"
0058 LIBDIR="${NETCDF_LIBDIR}"
0059 LIBS="-L${NETCDF_LIBDIR}"
0060 elif test -d /usr/include/netcdf-3 ; then
0061 INCLUDES='-I/usr/include/netcdf-3'
0062 LIBS='-L/usr/lib64/netcdf-3 -lnetcdf_g77'
0063 elif test -d /usr/include/netcdf ; then
0064 INCLUDES='-I/usr/include/netcdf'
0065 elif test -d /usr/local/netcdf ; then
0066 INCLUDES='-I/usr/local/netcdf/include'
0067 LIBS='-L/usr/local/netcdf/lib'
0068 elif test -d /usr/local/include/netcdf.inc ; then
0069 INCLUDES='-I/usr/local/include'
0070 LIBS='-L/usr/local/lib64'
0071 fi
0072