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 -DUSE_OMP_THREADING' |
DEFINES='-DWORDLENGTH=4 -DUSE_OMP_THREADING' |
10 |
CPP='cpp -traditional -P' |
CPP='cpp -traditional -P' |
11 |
NOOPTFLAGS='-O0 -g -m64 -Kpic -xfilebyteorder=big16:%all -u -r8const -xopenmp=noopt' |
NOOPTFLAGS='-O0 -g -m64 -Kpic -xfilebyteorder=big16:%all -u -r8const -xopenmp=noopt' |
12 |
NOOPTFILES='' |
NOOPTFILES='' |
13 |
|
EXTENDED_SRC_FLAG='-e' |
14 |
|
|
15 |
if test "x$DEVEL" != x ; then |
if test "x$DEVEL" != x ; then |
16 |
FFLAGS='-xfilebyteorder=big16:%all -u -r8const -g -xs -C -xcommonchk -xcheck=init_local -fpover -xopenmp=noopt' |
FFLAGS='-xfilebyteorder=big16:%all -u -r8const -g -xs -C -xcommonchk -xcheck=init_local -fpover -xopenmp=noopt' |
21 |
if test "x$IEEE" = x ; then |
if test "x$IEEE" = x ; then |
22 |
# No need for IEEE-754 |
# No need for IEEE-754 |
23 |
FOPTIM='-fast -m64 -xvector=simd -xpad=local -Kpic' |
FOPTIM='-fast -m64 -xvector=simd -xpad=local -Kpic' |
24 |
LIBS="$LIBS -lmopt -lsunmath" |
LIBS="$LIBS -lmopt" |
25 |
else |
else |
26 |
# Try to follow IEEE-754 |
# Try to follow IEEE-754 |
27 |
# FOPTIM='-O0 -m64 -Kpic' |
# FOPTIM='-O0 -m64 -Kpic' |
29 |
fi |
fi |
30 |
F90FLAGS=$FFLAGS |
F90FLAGS=$FFLAGS |
31 |
F90OPTIM=$FOPTIM |
F90OPTIM=$FOPTIM |
32 |
CFLAGS='-O3 -m64 -KPIC -xopenmp' |
CFLAGS='-O3 -m64 -Kpic -xopenmp' |
33 |
|
|
34 |
if [ "x$NETCDF_ROOT" != x ] ; then |
if [ "x$NETCDF_ROOT" != x ] ; then |
35 |
INCLUDEDIR="${NETCDF_ROOT}/include" |
INCLUDEDIR="${NETCDF_ROOT}/include" |
63 |
LIBS='-L/usr/local/netcdf/lib' |
LIBS='-L/usr/local/netcdf/lib' |
64 |
elif test -d /usr/local/include/netcdf.inc ; then |
elif test -d /usr/local/include/netcdf.inc ; then |
65 |
INCLUDES='-I/usr/local/include' |
INCLUDES='-I/usr/local/include' |
66 |
LIBS='-L/usr/local/lib64' |
LIBS='-L/usr/local/lib64 -L/usr/local/lib' |
67 |
fi |
fi |
68 |
|
|