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 MacBook Pro |
6 |
# on 28-Nov-2006 |
7 |
|
8 |
CPP='/usr/bin/cpp -traditional -P' |
9 |
FC=g95 |
10 |
CC=gcc |
11 |
LINK=g95 |
12 |
NOOPTFLAGS='-O0' |
13 |
|
14 |
S64='$(TOOLSDIR)/set64bitConst.sh' |
15 |
#EH3 MAKEDEPEND='${TOOLSDIR}/xmakedepend' |
16 |
#EH3 MAKEDEPEND=makedepend |
17 |
DEFINES='-D_BYTESWAPIO -DWORDLENGTH=4' |
18 |
INCLUDEDIRS='/sw/include' |
19 |
INCLUDES='-I/sw/include' |
20 |
LIBS='-L/sw/lib -lnetcdf' |
21 |
###FC_NAMEMANGLE="#define FC_NAMEMANGLE(X) _ ## X" |
22 |
###FC_NAMEMANGLE="#define FC_NAMEMANGLE(X) X" |
23 |
###FC_NAMEMANGLE="#define FC_NAMEMANGLE(X) X ## _" |
24 |
|
25 |
# For IEEE, use the "-ffloat-store" option |
26 |
if test "x$IEEE" = x ; then |
27 |
FFLAGS='-Wunused -Wuninitialized' |
28 |
FOPTIM='-O3 -funroll-loops' |
29 |
else |
30 |
FFLAGS='-Wunused -ffloat-store' |
31 |
FOPTIM='-O0' |
32 |
fi |