1 |
#!/bin/bash |
2 |
|
3 |
# $Header: /u/gcmpack/MITgcm/tools/build_options/darwin_ppc_g77,v 1.4 2004/09/24 02:34:23 edhill 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 |
NOOPTFLAGS='-O0' |
15 |
|
16 |
S64='$(TOOLSDIR)/set64bitConst.sh' |
17 |
#EH3 MAKEDEPEND='${TOOLSDIR}/xmakedepend' |
18 |
#EH3 MAKEDEPEND=makedepend |
19 |
DEFINES='-DWORDLENGTH=4' |
20 |
INCLUDES='-I/sw/include' |
21 |
LIBS='-L/sw/lib' |
22 |
|
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 |