1 |
#!/bin/bash |
2 |
# |
3 |
# $Header: /u/gcmpack/MITgcm/tools/build_options/darwin_ia32_gfortran+mpi,v 1.1 2009/12/23 12:52:32 mlosch Exp $ |
4 |
# $Name: $ |
5 |
|
6 |
# tested on MacBook Pro with Leopard |
7 |
# on 23-Dec-2009 |
8 |
# gfortran (version 4.3.1) obtained via fink |
9 |
# OpenMPI (version 1.4) obtained from http://www.open.mpi.org |
10 |
|
11 |
CPP='/usr/bin/cpp -traditional -P' |
12 |
FC=mpif90 |
13 |
#CC=gcc |
14 |
# Following flag is needed when using 32-bit gfortran with 64-bit gcc, |
15 |
# as can be the case right after switching to Snow Leopard. |
16 |
#CFLAGS='-arch i386' |
17 |
LINK=mpif90 |
18 |
NOOPTFLAGS='-O0' |
19 |
EXTENDED_SRC_FLAG='-ffixed-line-length-132' |
20 |
MPI='true' |
21 |
|
22 |
S64='$(TOOLSDIR)/set64bitConst.sh' |
23 |
#EH3 MAKEDEPEND='${TOOLSDIR}/xmakedepend' |
24 |
#EH3 MAKEDEPEND=makedepend |
25 |
DEFINES='-DWORDLENGTH=4 -DNML_TERMINATOR' |
26 |
#INCLUDES='-I/sw/include -I/opt/openmpi/include'' |
27 |
#LIBS='-L/sw/lib' |
28 |
INCLUDES='-I/usr/local/include -I/opt/openmpi/include' |
29 |
LIBS='-L/usr/local/lib' |
30 |
|
31 |
# For IEEE, use the "-ffloat-store" option |
32 |
if test "x$IEEE" = x ; then |
33 |
FFLAGS='-Wunused -Wuninitialized -fsecond-underscore -fconvert=big-endian' |
34 |
FOPTIM='-O3 -funroll-loops' |
35 |
NOOPTFLAGS='-O2 -funroll-loops' |
36 |
NOOPTFILES='gad_c4_adv_x.F gad_u3_adv_x.F' |
37 |
else |
38 |
FFLAGS='-Wunused -ffloat-store -fsecond-underscore -fconvert=big-endian' |
39 |
FOPTIM='-O0' |
40 |
fi |