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