/[MITgcm]/MITgcm/tools/build_options/darwin_ia32_gfortran
ViewVC logotype

Contents of /MITgcm/tools/build_options/darwin_ia32_gfortran

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.10 - (show annotations) (download)
Sun Mar 21 22:22:52 2010 UTC (14 years, 1 month ago) by jmc
Branch: MAIN
CVS Tags: checkpoint63a, checkpoint63b, checkpoint63, checkpoint62g, checkpoint62f, checkpoint62e, checkpoint62d, checkpoint62k, checkpoint62j, checkpoint62i, checkpoint62h, checkpoint62o, checkpoint62n, checkpoint62m, checkpoint62l, checkpoint62s, checkpoint62r, checkpoint62q, checkpoint62p, checkpoint62w, checkpoint62v, checkpoint62u, checkpoint62t, checkpoint62z, checkpoint62y, checkpoint62x
Changes since 1.9: +3 -2 lines
add cvs Name and Header (if missing)

1 #!/bin/bash
2 #
3 # $Header: /u/gcmpack/MITgcm/tools/build_options/darwin_ia32_gfortran,v 1.9 2009/11/21 06:57:18 dimitri Exp $
4 # $Name: $
5
6 # tested on MacBook Pro with Snow Leopard
7 # on 20-Nov-2009
8 # gcc and gfortran obtained from
9 # http://hpc.sourceforge.net/
10 # http://prdownloads.sourceforge.net/hpc/gcc-snwleo-intel-bin.tar.gz?download
11 # http://prdownloads.sourceforge.net/hpc/gfortran-snwleo-intel-bin.tar.gz?download
12
13 CPP='/usr/bin/cpp -traditional -P'
14 FC=gfortran
15 ###CC=gcc
16 #Following flag is needed when using 32-bit gfortran with 64-bit gcc,
17 #as can be the case right after switching to Snow Leopard.
18 #CFLAGS='-arch i386'
19 LINK=gfortran
20 NOOPTFLAGS='-O0'
21 EXTENDED_SRC_FLAG='-ffixed-line-length-132'
22
23 S64='$(TOOLSDIR)/set64bitConst.sh'
24 #EH3 MAKEDEPEND='${TOOLSDIR}/xmakedepend'
25 #EH3 MAKEDEPEND=makedepend
26 DEFINES='-DWORDLENGTH=4 -DNML_TERMINATOR'
27 INCLUDEDIRS='/sw/include'
28 INCLUDES='-I/sw/include'
29 LIBS='-L/sw/lib'
30
31 ##INCLUDEDIRS='/Users/heimbach/NetCDF/netcdf-3.6.0-p1/gfortran/include'
32 ##INCLUDES='-I/Users/heimbach/NetCDF/netcdf-3.6.0-p1/gfortran/include'
33 ##LIBS='-L/Users/heimbach/NetCDF/netcdf-3.6.0-p1/gfortran/lib'
34
35 ###FC_NAMEMANGLE="#define FC_NAMEMANGLE(X) _ ## X ## _"
36 ###FC_NAMEMANGLE="#define FC_NAMEMANGLE(X) X"
37 ###FC_NAMEMANGLE="#define FC_NAMEMANGLE(X) X ## _"
38
39 # For IEEE, use the "-ffloat-store" option
40 if test "x$IEEE" = x ; then
41 FFLAGS='-Wunused -Wuninitialized -fsecond-underscore -fconvert=big-endian'
42 FOPTIM='-O3 -funroll-loops'
43 NOOPTFLAGS='-O2 -funroll-loops'
44 NOOPTFILES='gad_c4_adv_x.F gad_u3_adv_x.F'
45 else
46 FFLAGS='-Wunused -ffloat-store -fsecond-underscore -fconvert=big-endian'
47 FOPTIM='-O0'
48 fi

  ViewVC Help
Powered by ViewVC 1.1.22