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