4 |
FC=f77 |
FC=f77 |
5 |
F90C=f90 |
F90C=f90 |
6 |
CC=cc |
CC=cc |
7 |
|
LINK=${F90C} |
8 |
|
FC_NAMEMANGLE="#define FC_NAMEMANGLE(X) X ## _" |
9 |
DEFINES='-DWORDLENGTH=4' |
DEFINES='-DWORDLENGTH=4' |
10 |
CPP='cpp -traditional -P' |
CPP='cpp -traditional -P' |
11 |
NOOPTFLAGS='-O0 -g -m64 -Kpic -xfilebyteorder=big16:%all -u -r8const' |
NOOPTFLAGS='-O0 -g -m64 -Kpic -xfilebyteorder=big16:%all -u -r8const' |
12 |
NOOPTFILES='' |
NOOPTFILES='' |
13 |
|
EXTENDED_SRC_FLAG='-e' |
14 |
|
OMPFLAG='-xopenmp' |
15 |
|
|
16 |
if test "x$DEVEL" != x ; then |
if test "x$DEVEL" != x ; then |
17 |
FFLAGS='-xfilebyteorder=big16:%all -u -r8const -g -xs -C -xcommonchk -xcheck=init_local -fpover' |
FFLAGS='-xfilebyteorder=big16:%all -u -r8const -g -xs -C -xcommonchk -xcheck=init_local -fpover' |
22 |
if test "x$IEEE" = x ; then |
if test "x$IEEE" = x ; then |
23 |
# No need for IEEE-754 |
# No need for IEEE-754 |
24 |
FOPTIM='-fast -m64 -xvector=simd -xpad=local -Kpic' |
FOPTIM='-fast -m64 -xvector=simd -xpad=local -Kpic' |
25 |
LIBS="$LIBS -lmopt -lsunmath" |
LIBS="$LIBS -lmopt" |
26 |
else |
else |
27 |
# Try to follow IEEE-754 |
# Try to follow IEEE-754 |
28 |
# FOPTIM='-O0 -m64 -Kpic' |
# FOPTIM='-O0 -m64 -Kpic' |
30 |
fi |
fi |
31 |
F90FLAGS=$FFLAGS |
F90FLAGS=$FFLAGS |
32 |
F90OPTIM=$FOPTIM |
F90OPTIM=$FOPTIM |
33 |
CFLAGS='-O3 -m64 -KPIC' |
CFLAGS='-O3 -m64 -Kpic' |
34 |
|
|
35 |
if [ "x$NETCDF_ROOT" != x ] ; then |
if [ "x$NETCDF_ROOT" != x ] ; then |
36 |
INCLUDEDIR="${NETCDF_ROOT}/include" |
INCLUDEDIR="${NETCDF_ROOT}/include" |
64 |
LIBS='-L/usr/local/netcdf/lib' |
LIBS='-L/usr/local/netcdf/lib' |
65 |
elif test -d /usr/local/include/netcdf.inc ; then |
elif test -d /usr/local/include/netcdf.inc ; then |
66 |
INCLUDES='-I/usr/local/include' |
INCLUDES='-I/usr/local/include' |
67 |
LIBS='-L/usr/local/lib64' |
LIBS='-L/usr/local/lib64 -L/usr/local/lib' |
68 |
fi |
fi |
69 |
|
|