1 |
edhill |
1.1 |
#!/bin/bash |
2 |
|
|
# |
3 |
mlosch |
1.4 |
# $Header: /u/gcmpack/MITgcm/tools/build_options/sunos_sun4u_g77,v 1.3 2004/12/16 08:30:11 mlosch Exp $ |
4 |
edhill |
1.1 |
# $Name: $ |
5 |
|
|
# |
6 |
mlosch |
1.3 |
# tested without NetCDF support on |
7 |
|
|
# SunOS model 5.9 Generic_112233-11 sun4u sparc SUNW,Sun-Fire-15000 |
8 |
mlosch |
1.4 |
# with g77 version 2.95.3 20010315 (release) (from FSF-g77 version 0.5.25 20010315 (release)) |
9 |
edhill |
1.1 |
|
10 |
|
|
|
11 |
|
|
DEFINES='-DWORDLENGTH=4' |
12 |
|
|
AWK='gawk' |
13 |
mlosch |
1.3 |
MAKEDEPEND='$(TOOLSDIR)/xmakedepend' |
14 |
edhill |
1.1 |
MAKE='gmake' |
15 |
mlosch |
1.3 |
CPP='/usr/ccs/lib/cpp -P' |
16 |
|
|
FC=g77 |
17 |
|
|
# This is an example of how to specify where your |
18 |
|
|
# netcdf libraries and include files are; |
19 |
|
|
# in this particular example, they are in |
20 |
|
|
# /usr/local/libs and /usr/local/include. |
21 |
|
|
# For g77, it is probably necessary to use libraries |
22 |
|
|
# that have been compiled with g77 as well. |
23 |
|
|
INCLUDES='-I/usr/local/include' |
24 |
|
|
LIBS='-L/usr/local/lib -lnetcdf' |
25 |
edhill |
1.1 |
|
26 |
mlosch |
1.3 |
NOOPTFLAGS='-O0' |
27 |
edhill |
1.1 |
# For IEEE, use the "-ffloat-store" option |
28 |
|
|
if test "x$IEEE" = x ; then |
29 |
|
|
FFLAGS='-Wimplicit -Wunused -Wuninitialized' |
30 |
edhill |
1.2 |
FOPTIM='-O3 -funroll-loops' |
31 |
edhill |
1.1 |
else |
32 |
|
|
FFLAGS='-Wimplicit -Wunused -ffloat-store' |
33 |
edhill |
1.2 |
FOPTIM='-O0' |
34 |
edhill |
1.1 |
fi |
35 |
|
|
|
36 |
|
|
|