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

Diff of /MITgcm/tools/build_options/darwin_ia32_gfortran

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

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

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.9

  ViewVC Help
Powered by ViewVC 1.1.22