1 |
edhill |
1.1 |
#!/bin/bash |
2 |
|
|
# |
3 |
edhill |
1.2 |
# $Header: /u/gcmpack/MITgcm/tools/build_options/linux_amd64_g77,v 1.1 2004/01/03 05:31:36 edhill Exp $ |
4 |
edhill |
1.1 |
# $Name: $ |
5 |
|
|
# |
6 |
|
|
# 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 |
8 |
|
|
# |
9 |
|
|
|
10 |
|
|
FC=g77 |
11 |
|
|
DEFINES='-D_BYTESWAPIO -DWORDLENGTH=4' |
12 |
|
|
CPP='cpp -traditional -P' |
13 |
|
|
NOOPTFLAGS='-O0' |
14 |
|
|
#MAKEDEPEND=/usr/X11R6/bin/gccmakedep |
15 |
edhill |
1.2 |
#MAKEDEPEND=/usr/X11R6/bin/makedepend |
16 |
edhill |
1.1 |
# For IEEE, use the "-ffloat-store" option |
17 |
|
|
if test "x$IEEE" = x ; then |
18 |
|
|
FFLAGS='-Wimplicit -Wunused -Wuninitialized' |
19 |
|
|
FOPTIM='-O3 -funroll-loops' |
20 |
|
|
else |
21 |
|
|
FFLAGS='-Wimplicit -Wunused -ffloat-store' |
22 |
|
|
FOPTIM='-O0 ' |
23 |
|
|
fi |
24 |
edhill |
1.2 |
|
25 |
|
|
if test -d /usr/include/netcdf-3 ; then |
26 |
|
|
INCLUDES='-I/usr/include/netcdf-3' |
27 |
|
|
if test -d /usr/lib64/netcdf-3 ; then |
28 |
|
|
if test -f /usr/lib64/netcdf-3/libnetcdf_g77.a ; then |
29 |
|
|
LIBS='-L/usr/lib64/netcdf-3 -lnetcdf_g77' |
30 |
|
|
else |
31 |
|
|
LIBS='-L/usr/lib64/netcdf-3' |
32 |
|
|
fi |
33 |
|
|
elif test -d /usr/lib/netcdf-3 ; then |
34 |
|
|
if test -f /usr/lib/netcdf-3/libnetcdf_g77.a ; then |
35 |
|
|
LIBS='-L/usr/lib/netcdf-3 -lnetcdf_g77' |
36 |
|
|
else |
37 |
|
|
LIBS='-L/usr/lib/netcdf-3' |
38 |
|
|
fi |
39 |
|
|
fi |
40 |
|
|
elif test -d /usr/include/netcdf ; then |
41 |
|
|
INCLUDES='-I/usr/include/netcdf' |
42 |
|
|
elif test -d /usr/local/netcdf ; then |
43 |
|
|
INCLUDES='-I/usr/local/netcdf/include' |
44 |
|
|
LIBS='-L/usr/local/netcdf/lib' |
45 |
|
|
fi |
46 |
|
|
|
47 |
|
|
|