1 |
#!/bin/bash |
2 |
# |
3 |
# $Header: /u/gcmpack/MITgcm/tools/build_options/sunos_sun4u_f77,v 1.2 2003/11/13 22:03:39 edhill Exp $ |
4 |
# $Name: $ |
5 |
# |
6 |
# tested on |
7 |
# SunOS model 5.9 Generic_112233-11 sun4u sparc SUNW,Sun-Fire-15000 |
8 |
# with f90: Forte Developer 7 Fortran 95 7.0 Patch 111714-03 2002/11/19 |
9 |
|
10 |
|
11 |
FC_NAMEMANGLE="#define FC_NAMEMANGLE(X) X ## _" |
12 |
S64='$(TOOLSDIR)/set64bitConst.sh' |
13 |
DEFINES='-DWORDLENGTH=4' |
14 |
AWK='gawk' |
15 |
MAKEDEPEND='$(TOOLSDIR)/xmakedepend' |
16 |
MAKE='gmake' |
17 |
CPP='/usr/ccs/lib/cpp -P' |
18 |
FC='f77' |
19 |
# This is an example of how to specify where your |
20 |
# netcdf libraries and include files are; |
21 |
# in this particular example, they are in |
22 |
# /usr/local/libs and /usr/local/include. |
23 |
INCLUDES='-I/usr/local/include' |
24 |
LIBS='-L/usr/local/lib' |
25 |
|
26 |
if test "x$IEEE" = x ; then |
27 |
# No need for IEEE-754 |
28 |
FFLAGS='-stackvar -explicitpar -vpara -e -u -noautopar -xtypemap=real:64,double:64,integer:32' |
29 |
FOPTIM='-dalign -O4 -xarch=native -fsimple=2' |
30 |
CFLAGS='-dalign -xO4 -xarch=native' |
31 |
else |
32 |
# Try to follow IEEE-754 |
33 |
FFLAGS='-e -u -xtypemap=real:64,double:64,integer:32 -fsimple=0' |
34 |
FFLAGS='-e -u -xtypemap=real:64,double:64,integer:32 -fsimple=0' |
35 |
FOPTIM='-O0' |
36 |
CFLAGS='-xO0' |
37 |
fi |
38 |
NOOPTFLAGS='-dalign -O0' |