1 |
#!/bin/bash |
2 |
# |
3 |
# $Header: /u/gcmpack/MITgcm/tools/build_options/sunos_i86pc_f95,v 1.2 2008/11/20 13:19:51 mlosch Exp $ |
4 |
# $Name: $ |
5 |
# |
6 |
# tested on |
7 |
# uname -a: SunOS solasrv4 5.10 Generic_127128-11 i86pc i386 i86pc |
8 |
# with f95: Sun Fortran 95 8.3 SunOS_i386 Patch 127002-04 2008/04/16 |
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)/cyrus-imapd-makedepend/makedepend' |
16 |
#MAKEDEPEND='$(TOOLSDIR)/xmakedepend' |
17 |
#MAKE='gmake' |
18 |
CPP='/usr/ccs/lib/cpp -P' |
19 |
FC='f95' |
20 |
# This is an example of how to specify where your |
21 |
# netcdf libraries and include files are; |
22 |
# in this particular example, they are in |
23 |
# /opt/netCDF_util-1.1/include and /opt/netCDF_util-1.1/include. |
24 |
INCLUDES='-I/opt/netCDF_util-1.1/include' |
25 |
LIBS='-L/opt/netCDF_util-1.1/lib' |
26 |
|
27 |
if test "x$IEEE" = x ; then |
28 |
# No need for IEEE-754 |
29 |
FFLAGS='-e -u -xfilebyteorder=big16:%all' |
30 |
FFLAGS=$FFLAGS' -xtypemap=real:64,double:64,integer:32' |
31 |
FOPTIM='-dalign -O4 -xarch=native -fsimple=2' |
32 |
CFLAGS='-dalign -xO4 -xarch=native' |
33 |
else |
34 |
# Try to follow IEEE-754 |
35 |
FFLAGS='-e -u -xfilebyteorder=big16:%all' |
36 |
FFLAGS=$FFLAGS' -xtypemap=real:64,double:64,integer:32' |
37 |
FOPTIM='-O0 -fsimple=0' |
38 |
CFLAGS='-xO0' |
39 |
fi |
40 |
NOOPTFLAGS='-dalign -O0' |