Warning, /tools/build_options/linux_amd64_absoft 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
a55812cda4 Cons*0001 #!/bin/bash
0002 #
6144427bd2 Jean*0003 #
0004 # To use our namelists please do a
a55812cda4 Cons*0005 # setenv ABSOFT_RT_FLAGS -f90nlexts
0006 FC=af77
0007 F90C=af90
0008 CC=gcc
0009 DEFINES='-DWORDLENGTH=4 -D_BYTESWAPIO -DHAVE_ETIME -DHAVE_SYSTEM -DHAVE_FDATE'
0010 CPP='cpp -traditional -P'
0011 NOOPTFLAGS='-B108 -YCFRL=1 -YEXT_NAMES=LCS -YVAR_NAMES=LCS -g -m64 -fPIC'
0012 NOOPTFILES='ini_parms.F'
d31bcd9ef7 Cons*0013 EXTENDED_SRC_FLAG='-W132'
a55812cda4 Cons*0014
0015 if test "x$DEVEL" != x ; then
0016 FFLAGS='-B108 -YCFRL=1 -YEXT_NAMES=LCS -YVAR_NAMES=LCS -g -trap=INVALID,DIVBYZERO,OVERFLOW -Rb -Rs -Rc'
0017 else
0018 FFLAGS='-B108 -YCFRL=1 -YEXT_NAMES=LCS -YVAR_NAMES=LCS'
0019 fi
0020
0021 if test "x$IEEE" = x ; then
0022 # No need for IEEE-754
d31bcd9ef7 Cons*0023 FOPTIM='-Ofast -m64 -fPIC -speed_math=9 -WOPT:if_conv=off -LNO:fu=9:full_unroll_size=7000 -cpu:host -TARG:sse2=on -TENV:simd_imask,simd_dmask,simd_zmask,simd_omask'
a55812cda4 Cons*0024 # FOPTIM='-O3 -m64 -U -cpu:host -fPIC'
0025 else
0026 # Try to follow IEEE-754
0027 FOPTIM='-O0 -m64 -fPIC'
0028 fi
0029 F90FLAGS=$FFLAGS
0030 F90OPTIM=$FOPTIM
0031 CFLAGS='-O3 -m64 -fPIC'
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-3 ; then
0056 INCLUDES='-I/usr/include/netcdf-3'
0057 LIBS='-L/usr/lib/netcdf-3 -L/usr/lib64/netcdf-3'
0058 elif test -d /usr/include/netcdf ; then
0059 INCLUDES='-I/usr/include/netcdf'
0060 elif test -d /usr/local/netcdf ; then
0061 INCLUDES='-I/usr/local/netcdf/include'
0062 LIBS='-L/usr/local/netcdf/lib'
0063 elif test -d /usr/local/include/netcdf.inc ; then
0064 INCLUDES='-I/usr/local/include'
0065 LIBS='-L/usr/local/lib64'
0066 fi
0067
0068 LIBS="$LIBS -lU77"