1 |
edhill |
1.1 |
#!/bin/bash |
2 |
|
|
# |
3 |
mlosch |
1.4 |
# $Header: /u/gcmpack/MITgcm/tools/build_options/sunos_sun4u_f77,v 1.3 2004/12/16 08:30:11 mlosch Exp $ |
4 |
|
|
# $Name: $ |
5 |
edhill |
1.1 |
# |
6 |
mlosch |
1.3 |
# tested on |
7 |
mlosch |
1.4 |
# 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.3 |
# with f90: Forte Developer 7 Fortran 95 7.0 Patch 111714-03 2002/11/19 |
10 |
edhill |
1.1 |
|
11 |
mlosch |
1.3 |
|
12 |
|
|
FC_NAMEMANGLE="#define FC_NAMEMANGLE(X) X ## _" |
13 |
edhill |
1.1 |
S64='$(TOOLSDIR)/set64bitConst.sh' |
14 |
|
|
DEFINES='-DWORDLENGTH=4' |
15 |
|
|
AWK='gawk' |
16 |
mlosch |
1.3 |
MAKEDEPEND='$(TOOLSDIR)/xmakedepend' |
17 |
mlosch |
1.4 |
MAKE='make' |
18 |
mlosch |
1.3 |
CPP='/usr/ccs/lib/cpp -P' |
19 |
mlosch |
1.4 |
# this one works, too |
20 |
|
|
#CPP='/opt/sfw/bin/cpp -traditional -P' |
21 |
edhill |
1.1 |
FC='f77' |
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 |
|
|
INCLUDES='-I/usr/local/include' |
27 |
|
|
LIBS='-L/usr/local/lib' |
28 |
|
|
|
29 |
|
|
if test "x$IEEE" = x ; then |
30 |
|
|
# No need for IEEE-754 |
31 |
|
|
FFLAGS='-stackvar -explicitpar -vpara -e -u -noautopar -xtypemap=real:64,double:64,integer:32' |
32 |
|
|
FOPTIM='-dalign -O4 -xarch=native -fsimple=2' |
33 |
|
|
CFLAGS='-dalign -xO4 -xarch=native' |
34 |
|
|
else |
35 |
|
|
# Try to follow IEEE-754 |
36 |
|
|
FFLAGS='-e -u -xtypemap=real:64,double:64,integer:32 -fsimple=0' |
37 |
|
|
FFLAGS='-e -u -xtypemap=real:64,double:64,integer:32 -fsimple=0' |
38 |
|
|
FOPTIM='-O0' |
39 |
|
|
CFLAGS='-xO0' |
40 |
|
|
fi |
41 |
|
|
NOOPTFLAGS='-dalign -O0' |