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 |
|
|
|
FC=g77 |
|
11 |
CC=gcc34 |
CC=gcc34 |
12 |
|
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="--version" |
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 |
22 |
FFLAGS='-Wimplicit -Wunused -Wuninitialized' |
FFLAGS='-Wimplicit -Wunused -Wuninitialized' |
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" |
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 |
|
|
|