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