1 |
#!/bin/bash |
2 |
|
3 |
# $Header: /u/gcmpack/MITgcm/tools/build_options/darwin_ppc_g77,v 1.5 2006/02/13 13:11:19 mlosch Exp $ |
4 |
# |
5 |
# tested on G4-PowerBook, 1GHz |
6 |
# cc-compiler is available only with the Apple Developer Tools, |
7 |
# so make sure that those are installed |
8 |
# g77 can be optained from FINK: http://fink.sourceforge.net |
9 |
# |
10 |
|
11 |
CPP='/usr/bin/cpp -traditional -P' |
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' |
19 |
INCLUDES='-I/sw/include' |
20 |
LIBS='-L/sw/lib' |
21 |
|
22 |
# For IEEE, use the "-ffloat-store" option |
23 |
if test "x$IEEE" = x ; then |
24 |
FFLAGS='-Wimplicit -Wunused -Wuninitialized' |
25 |
FOPTIM='-O3 -funroll-loops' |
26 |
else |
27 |
FFLAGS='-Wimplicit -Wunused -ffloat-store' |
28 |
FOPTIM='-O0' |
29 |
fi |
30 |
#ifndef REAL4_IS_SLOW |
31 |
# _RS expands into real*4 and statements such as |
32 |
# MAX(ABS(aV3d),myNorm) in ini_cg3d.F do not work with 'g77 -O3', |
33 |
# so we have to lower the optimization level here to -O1; |
34 |
# not clear why this is so, similar statements do work in ini_cg2d.F |
35 |
#NOOPTFILES='ini_cg3d.F' |
36 |
#NOOPTFLAGS='-O1 -funroll-loops' |
37 |
#else |
38 |
NOOPTFLAGS=-O0 |
39 |
#endif /* REAL4_IS_SLOW */ |