1 |
#!/bin/bash |
2 |
# |
3 |
# $Header: /u/gcmpack/MITgcm/tools/build_options/osf1_alpha_g77,v 1.5 2005/03/04 00:12:23 edhill Exp $ |
4 |
# $Name: $ |
5 |
# |
6 |
|
7 |
|
8 |
FC=g77 |
9 |
DEFINES='-D_BYTESWAPIO -DWORDLENGTH=4 -DNML_EXTENDED_F77' |
10 |
CPP='/usr/local/bin/cpp -traditional -P' |
11 |
NOOPTFLAGS='-O0' |
12 |
EXTENDED_SRC_FLAG='-ffixed-line-length-132' |
13 |
GET_FC_VERSION="--version" |
14 |
#EH3 Remove the buggy mkdep since the newly included cyrus version |
15 |
#EH3 works much better on machines such as "halem" |
16 |
#EH3 MAKEDEPEND='mkdep -f depend.out' |
17 |
|
18 |
FC_NAMEMANGLE="#define FC_NAMEMANGLE(X) X ## _" |
19 |
|
20 |
# netcdf |
21 |
# DOES NOT (YET) WORK because the netcdf library installed on Halem |
22 |
# was compiled with the "f77" compiler and the library is not |
23 |
# compatible with g77 -- so we need to either build our own lib for |
24 |
# g77 or ask the admins to do so. |
25 |
# INCLUDES="$INCLUDES -I/usr/ulocal/stow/netcdf-3.5.1/include" |
26 |
# LIBS="-L/usr/ulocal/stow/netcdf-3.5.1/lib -lnetcdf" |
27 |
|
28 |
# For IEEE, use the "-ffloat-store" option |
29 |
if test "x$IEEE" = x ; then |
30 |
FFLAGS='-Wimplicit -Wunused -Wuninitialized' |
31 |
FOPTIM='-O3 -funroll-loops' |
32 |
else |
33 |
FFLAGS='-Wimplicit -Wunused -ffloat-store' |
34 |
FOPTIM='-O0' |
35 |
fi |