3 |
# $Header$ |
# $Header$ |
4 |
# $Name$ |
# $Name$ |
5 |
# |
# |
6 |
# Build options for Suse 9 Opteron |
# Build options for g77 compiler (compat-gcc-34-g77) on Linux AMD64 platform |
7 |
# tested on Linux 2.4.21-102-smp (x86_64), |
# Tested on Linux 2.4.21-102-smp (x86_64), |
8 |
# Linux 2.6.26.8-57.fc8 (x86_64), Linux 2.6.27.9-159.fc10.x86_64 |
# on Fedora Core 8, 10 (e.g.: dickens), 13 (e.g.: baudelaire), |
9 |
# |
# 14, 15 (e.g.: acesgrid), 17, 19 |
10 |
|
|
11 |
|
CC=gcc34 |
12 |
FC=g77 |
FC=g77 |
13 |
DEFINES='-D_BYTESWAPIO -DWORDLENGTH=4 -DNML_EXTENDED_F77' |
DEFINES='-D_BYTESWAPIO -DWORDLENGTH=4 -DNML_EXTENDED_F77' |
|
CPP='cpp -traditional -P' |
|
|
NOOPTFLAGS='-O0' |
|
14 |
EXTENDED_SRC_FLAG='-ffixed-line-length-132' |
EXTENDED_SRC_FLAG='-ffixed-line-length-132' |
15 |
GET_FC_VERSION="-v" |
GET_FC_VERSION="--version" |
16 |
|
|
17 |
|
NOOPTFLAGS='-O0' |
18 |
|
CFLAGS='-O0' |
19 |
|
|
20 |
# For IEEE, use the "-ffloat-store" option |
# For IEEE, use the "-ffloat-store" option |
21 |
if test "x$IEEE" = x ; then |
if test "x$IEEE" = x ; then |
26 |
# FFLAGS="$FFLAGS -g -mfpmath=sse -msse -msse2 -fbounds-check" |
# FFLAGS="$FFLAGS -g -mfpmath=sse -msse -msse2 -fbounds-check" |
27 |
FOPTIM='-O0' |
FOPTIM='-O0' |
28 |
fi |
fi |
29 |
# for big objects: |
|
30 |
FFLAGS="$FFLAGS -fPIC" |
#- for big setups, compile & link with "-fPIC" or set memory-model to "medium": |
31 |
CFLAGS="-O0 -fPIC" |
#CFLAGS="$CFLAGS -fPIC" |
32 |
|
#FFLAGS="$FFLAGS -fPIC" |
33 |
|
#- with FC 19, need to use this without -fPIC (which cancels -mcmodel option): |
34 |
|
CFLAGS="$CFLAGS -mcmodel=medium" |
35 |
|
FFLAGS="$FFLAGS -mcmodel=medium" |
36 |
|
|
37 |
if test -d /usr/include/netcdf-3 ; then |
if test -d /usr/include/netcdf-3 ; then |
38 |
#-- some FedoraCore standard location used to be "netcdf-3" |
#-- some FedoraCore standard location used to be "netcdf-3" |
50 |
LIBS='-L/usr/lib/netcdf-3' |
LIBS='-L/usr/lib/netcdf-3' |
51 |
fi |
fi |
52 |
fi |
fi |
53 |
elif test -d /usr/include/netcdf ; then |
elif test -d /usr/include/netcdf -o -f /usr/include/netcdf.h ; then |
54 |
#-- allows a "compat"(gcc 3.4) 2nd version of libs for g77 , next to the |
#-- allows a "compat"(gcc 3.4) 2nd version of libs for g77 , next to the |
55 |
# standard one (for gfortran, gcc 4.x). But uses same include files. |
# standard one (for gfortran, gcc 4.x). But uses same include files. |
56 |
INCLUDES='-I/usr/include/netcdf' |
if test -d /usr/include/netcdf ; then |
57 |
|
INCLUDES='-I/usr/include/netcdf' |
58 |
|
fi |
59 |
if test -d /usr/lib64/netcdf34 ; then |
if test -d /usr/lib64/netcdf34 ; then |
60 |
if test -f /usr/lib64/netcdf34/libnetcdf_g77.a ; then |
if test -f /usr/lib64/netcdf34/libnetcdf_g77.a ; then |
61 |
LIBS='-L/usr/lib64/netcdf34 -lnetcdf_g77' |
LIBS='-L/usr/lib64/netcdf34 -lnetcdf_g77' |
73 |
INCLUDES='-I/usr/local/netcdf/include' |
INCLUDES='-I/usr/local/netcdf/include' |
74 |
LIBS='-L/usr/local/netcdf/lib' |
LIBS='-L/usr/local/netcdf/lib' |
75 |
fi |
fi |
|
|
|