1 |
edhill |
1.1 |
#!/bin/bash |
2 |
|
|
|
3 |
edhill |
1.4 |
# $Header: /u/gcmpack/MITgcm/tools/build_options/darwin_ppc_g77,v 1.3 2004/08/29 15:38:32 edhill Exp $ |
4 |
edhill |
1.1 |
# |
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 |
|
|
NOOPTFLAGS='-O0' |
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 |
edhill |
1.3 |
|
21 |
|
|
# For IEEE, use the "-ffloat-store" option |
22 |
|
|
if test "x$IEEE" = x ; then |
23 |
|
|
FFLAGS='-Wimplicit -Wunused -Wuninitialized' |
24 |
|
|
FOPTIM='-O3 -funroll-loops' |
25 |
|
|
else |
26 |
|
|
FFLAGS='-Wimplicit -Wunused -ffloat-store' |
27 |
|
|
FOPTIM='-O0' |
28 |
|
|
fi |
29 |
|
|
|
30 |
|
|
|