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