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=gfortran |
11 |
LINK=gfortran |
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_TERMINATOR' |
18 |
INCLUDES='-I/Users/davidferreira/Documents/netcdf-3.6.1/gfortran/include' |
19 |
LIBS='-L/Users/davidferreira/Documents/netcdf-3.6.1/gfortran/lib' |
20 |
|
21 |
# For IEEE, use the "-ffloat-store" option |
22 |
if test "x$IEEE" = x ; then |
23 |
# FFLAGS='-Wunused -Wuninitialized -fsecond-underscore' |
24 |
FFLAGS='-Wunused -Wuninitialized' |
25 |
FOPTIM='-O3 -funroll-loops' |
26 |
# FOPTIM='-O3 -malign-double -funroll-loops' |
27 |
else |
28 |
FFLAGS='-Wunused -ffloat-store -fsecond-underscore' |
29 |
FOPTIM='-O0' |
30 |
fi |