4 |
# $Name$ |
# $Name$ |
5 |
# |
# |
6 |
# Build options for Suse 9 Opteron |
# Build options for Suse 9 Opteron |
7 |
# tested on (Linux eaps-dhcp-127 2.4.21-102-smp #1 SMP Wed Sep 24 13:55:59 UTC 2003 x86_64 x86_64 x86_64 GNU/Linux) system 20031107 |
# 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 |
9 |
# |
# |
10 |
|
|
11 |
FC=g77 |
FC=g77 |
12 |
DEFINES='-D_BYTESWAPIO -DWORDLENGTH=4' |
DEFINES='-D_BYTESWAPIO -DWORDLENGTH=4' |
13 |
CPP='cpp -traditional -P' |
CPP='cpp -traditional -P' |
14 |
NOOPTFLAGS='-O0' |
NOOPTFLAGS='-O0' |
15 |
|
EXTENDED_SRC_FLAG='-ffixed-line-length-132' |
16 |
#MAKEDEPEND=/usr/X11R6/bin/gccmakedep |
#MAKEDEPEND=/usr/X11R6/bin/gccmakedep |
17 |
MAKEDEPEND=/usr/X11R6/bin/makedepend |
#MAKEDEPEND=/usr/X11R6/bin/makedepend |
18 |
# For IEEE, use the "-ffloat-store" option |
# For IEEE, use the "-ffloat-store" option |
19 |
if test "x$IEEE" = x ; then |
if test "x$IEEE" = x ; then |
20 |
FFLAGS='-Wimplicit -Wunused -Wuninitialized' |
FFLAGS='-Wimplicit -Wunused -Wuninitialized' |
21 |
FOPTIM='-O3 -funroll-loops' |
FOPTIM='-O3 -funroll-loops' |
22 |
else |
else |
23 |
FFLAGS='-Wimplicit -Wunused -ffloat-store' |
FFLAGS='-Wimplicit -Wunused -ffloat-store' |
24 |
FOPTIM='-O0 ' |
# FFLAGS="$FFLAGS -g -mfpmath=sse -msse -msse2 -fbounds-check" |
25 |
|
FOPTIM='-O0' |
26 |
fi |
fi |
27 |
|
|
28 |
|
if test -d /usr/include/netcdf-3 ; then |
29 |
|
INCLUDES='-I/usr/include/netcdf-3' |
30 |
|
if test -d /usr/lib64/netcdf-3 ; then |
31 |
|
if test -f /usr/lib64/netcdf-3/libnetcdf_g77.a ; then |
32 |
|
LIBS='-L/usr/lib64/netcdf-3 -lnetcdf_g77' |
33 |
|
else |
34 |
|
LIBS='-L/usr/lib64/netcdf-3' |
35 |
|
fi |
36 |
|
elif test -d /usr/lib/netcdf-3 ; then |
37 |
|
if test -f /usr/lib/netcdf-3/libnetcdf_g77.a ; then |
38 |
|
LIBS='-L/usr/lib/netcdf-3 -lnetcdf_g77' |
39 |
|
else |
40 |
|
LIBS='-L/usr/lib/netcdf-3' |
41 |
|
fi |
42 |
|
fi |
43 |
|
elif test -d /usr/include/netcdf ; then |
44 |
|
INCLUDES='-I/usr/include/netcdf' |
45 |
|
elif test -d /usr/local/netcdf ; then |
46 |
|
INCLUDES='-I/usr/local/netcdf/include' |
47 |
|
LIBS='-L/usr/local/netcdf/lib' |
48 |
|
fi |
49 |
|
|