/[MITgcm]/MITgcm/tools/build_options/sunos_sun4u_f77
ViewVC logotype

Annotation of /MITgcm/tools/build_options/sunos_sun4u_f77

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.3 - (hide annotations) (download)
Thu Dec 16 08:30:11 2004 UTC (19 years, 5 months ago) by mlosch
Branch: MAIN
Changes since 1.2: +29 -9 lines
o clean up build options files for SunOS
  - replace -xarch=v9 option with -xarch=native to make using netcdf
    easier

1 edhill 1.1 #!/bin/bash
2     #
3 mlosch 1.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 edhill 1.1 #
6 mlosch 1.3 # 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 edhill 1.1
10 mlosch 1.3
11     FC_NAMEMANGLE="#define FC_NAMEMANGLE(X) X ## _"
12 edhill 1.1 S64='$(TOOLSDIR)/set64bitConst.sh'
13     DEFINES='-DWORDLENGTH=4'
14     AWK='gawk'
15 mlosch 1.3 MAKEDEPEND='$(TOOLSDIR)/xmakedepend'
16 edhill 1.1 MAKE='gmake'
17 mlosch 1.3 CPP='/usr/ccs/lib/cpp -P'
18 edhill 1.1 FC='f77'
19 mlosch 1.3 # 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'

  ViewVC Help
Powered by ViewVC 1.1.22