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

Annotation of /MITgcm/tools/build_options/darwin_ppc_g77

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


Revision 1.7 - (hide annotations) (download)
Sun Mar 21 22:22:52 2010 UTC (14 years, 1 month ago) by jmc
Branch: MAIN
CVS Tags: checkpoint62g, checkpoint62f, checkpoint62e, checkpoint62d, checkpoint62k, checkpoint62j, checkpoint62i, checkpoint62h, checkpoint62o, checkpoint62n, checkpoint62m, checkpoint62l, checkpoint62p
Changes since 1.6: +6 -5 lines
add cvs Name and Header (if missing)

1 edhill 1.1 #!/bin/bash
2 jmc 1.7 #
3     # $Header: /u/gcmpack/MITgcm/tools/build_options/darwin_ppc_g77,v 1.6 2008/10/25 17:13:49 mlosch Exp $
4     # $Name: $
5 edhill 1.1
6     # tested on G4-PowerBook, 1GHz
7 jmc 1.7 # cc-compiler is available only with the Apple Developer Tools,
8     # so make sure that those are installed
9 edhill 1.1 # g77 can be optained from FINK: http://fink.sourceforge.net
10     #
11    
12     CPP='/usr/bin/cpp -traditional -P'
13     FC=g77
14     LINK=g77
15    
16     S64='$(TOOLSDIR)/set64bitConst.sh'
17 edhill 1.4 #EH3 MAKEDEPEND='${TOOLSDIR}/xmakedepend'
18     #EH3 MAKEDEPEND=makedepend
19 edhill 1.1 DEFINES='-DWORDLENGTH=4'
20 mlosch 1.5 INCLUDES='-I/sw/include'
21     LIBS='-L/sw/lib'
22 edhill 1.3
23     # For IEEE, use the "-ffloat-store" option
24     if test "x$IEEE" = x ; then
25     FFLAGS='-Wimplicit -Wunused -Wuninitialized'
26     FOPTIM='-O3 -funroll-loops'
27     else
28     FFLAGS='-Wimplicit -Wunused -ffloat-store'
29     FOPTIM='-O0'
30     fi
31 mlosch 1.6 #ifndef REAL4_IS_SLOW
32 jmc 1.7 # _RS expands into real*4 and statements such as
33 mlosch 1.6 # MAX(ABS(aV3d),myNorm) in ini_cg3d.F do not work with 'g77 -O3',
34     # so we have to lower the optimization level here to -O1;
35     # not clear why this is so, similar statements do work in ini_cg2d.F
36     #NOOPTFILES='ini_cg3d.F'
37     #NOOPTFLAGS='-O1 -funroll-loops'
38     #else
39     NOOPTFLAGS=-O0
40     #endif /* REAL4_IS_SLOW */
41 edhill 1.3
42    

  ViewVC Help
Powered by ViewVC 1.1.22