8 |
FC=g77 |
FC=g77 |
9 |
CC=gcc |
CC=gcc |
10 |
DEFINES='-D_BYTESWAPIO -DWORDLENGTH=4' |
DEFINES='-D_BYTESWAPIO -DWORDLENGTH=4' |
11 |
|
# CPP='gcc -E -traditional -P -' |
12 |
CPP='cpp -traditional -P' |
CPP='cpp -traditional -P' |
13 |
NOOPTFLAGS='-O0' |
NOOPTFLAGS='-O0' |
14 |
|
EXTENDED_SRC_FLAG='-ffixed-line-length-132' |
15 |
|
|
16 |
if test "x$IEEE" = x ; then |
if test "x$IEEE" = x ; then |
17 |
# No need for IEEE-754 |
# No need for IEEE-754 |
22 |
has_sse2=f |
has_sse2=f |
23 |
grep flags /proc/cpuinfo | grep sse2 > /dev/null 2>&1 && has_sse2=t |
grep flags /proc/cpuinfo | grep sse2 > /dev/null 2>&1 && has_sse2=t |
24 |
|
|
|
# older OS on sea.mit.edu does not support sse |
|
|
if [ `uname -n` = "sea" ]; then has_sse2=f; fi |
|
|
|
|
25 |
if test "x$has_sse2" = xt ; then |
if test "x$has_sse2" = xt ; then |
26 |
FFLAGS='-Wimplicit -Wunused -mfpmath=sse -msse -msse2' |
FFLAGS='-Wimplicit -Wunused -mfpmath=sse -msse -msse2' |
27 |
else |
else |
33 |
|
|
34 |
if test -d /usr/include/netcdf-3 ; then |
if test -d /usr/include/netcdf-3 ; then |
35 |
INCLUDES='-I/usr/include/netcdf-3' |
INCLUDES='-I/usr/include/netcdf-3' |
36 |
if test -f /usr/lib/libnetcdf_g77.so ; then |
if test -d /usr/lib/netcdf-3 ; then |
37 |
LIBS='-lnetcdf_g77' |
if test -f /usr/lib/netcdf-3/libnetcdf_g77.a ; then |
38 |
else |
LIBS='-L/usr/lib/netcdf-3 -lnetcdf_g77' |
39 |
if test -d /usr/lib/netcdf-3 ; then |
else |
40 |
if test -f /usr/lib/netcdf-3/libnetcdf_g77.a ; then |
LIBS='-L/usr/lib/netcdf-3' |
|
LIBS='-L/usr/lib/netcdf-3 -lnetcdf_g77' |
|
|
else |
|
|
LIBS='-L/usr/lib/netcdf-3' |
|
|
fi |
|
41 |
fi |
fi |
42 |
fi |
fi |
43 |
elif test -d /usr/include/netcdf ; then |
elif test -d /usr/include/netcdf ; then |
50 |
GSLLIB='-lgsl -lgslcblas' |
GSLLIB='-lgsl -lgslcblas' |
51 |
PAPIINC='-I/usr/local/pkg/papi/papi-3.0.8.1/p4/include' |
PAPIINC='-I/usr/local/pkg/papi/papi-3.0.8.1/p4/include' |
52 |
PAPILIB='-L/usr/local/pkg/papi/papi-3.0.8.1/p4/lib -lpapi' |
PAPILIB='-L/usr/local/pkg/papi/papi-3.0.8.1/p4/lib -lpapi' |
53 |
|
|