1 |
dfer |
1.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 |
|
|
# cc-compiler is available only with the Apple Developer Tools, |
6 |
|
|
# so make sure that those are installed |
7 |
|
|
# |
8 |
|
|
|
9 |
|
|
CPP='/usr/bin/cpp -traditional -P -xassembler-with-cpp' |
10 |
|
|
FC=g95 |
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 -DNML_TERMINATORM' |
18 |
|
|
INCLUDES='-I/Users/davidferreira/Documents/netcdf-3.6.1/g95/include' |
19 |
|
|
LIBS='-L/Users/davidferreira/Documents/netcdf-3.6.1/g95/lib' |
20 |
|
|
|
21 |
|
|
# For IEEE, use the "-ffloat-store" option |
22 |
|
|
if test "x$IEEE" = x ; then |
23 |
|
|
FFLAGS='-Wunused -Wuninitialized' |
24 |
|
|
FOPTIM='-O3 -funroll-loops' |
25 |
|
|
# FOPTIM='-O3 -malign-double -funroll-loops' |
26 |
|
|
else |
27 |
|
|
FFLAGS='-Wunused -ffloat-store' |
28 |
|
|
FOPTIM='-O0' |
29 |
|
|
fi |
30 |
|
|
|