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