/[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.8 - (show annotations) (download)
Sat Nov 21 06:04:05 2009 UTC (14 years, 6 months ago) by dimitri
Branch: MAIN
Changes since 1.7: +2 -1 lines
adding CFLAGS='-arch i386' for snow leopard compatibility

1 #!/bin/bash
2
3 # $Header: /u/gcmpack/MITgcm/tools/build_options/darwin_ia32_gfortran,v 1.7 2009/10/09 11:18:37 mlosch Exp $
4 #
5 # tested on MacBook Pro
6 # on 28-Nov-2006
7
8 CPP='/usr/bin/cpp -traditional -P'
9 FC=gfortran
10 ###CC=gcc
11 CFLAGS='-arch i386'
12 LINK=gfortran
13 NOOPTFLAGS='-O0'
14 EXTENDED_SRC_FLAG='-ffixed-line-length-132'
15
16 S64='$(TOOLSDIR)/set64bitConst.sh'
17 #EH3 MAKEDEPEND='${TOOLSDIR}/xmakedepend'
18 #EH3 MAKEDEPEND=makedepend
19 DEFINES='-DWORDLENGTH=4 -DNML_TERMINATOR'
20 INCLUDEDIRS='/sw/include'
21 INCLUDES='-I/sw/include'
22 LIBS='-L/sw/lib'
23
24 ##INCLUDEDIRS='/Users/heimbach/NetCDF/netcdf-3.6.0-p1/gfortran/include'
25 ##INCLUDES='-I/Users/heimbach/NetCDF/netcdf-3.6.0-p1/gfortran/include'
26 ##LIBS='-L/Users/heimbach/NetCDF/netcdf-3.6.0-p1/gfortran/lib'
27
28 ###FC_NAMEMANGLE="#define FC_NAMEMANGLE(X) _ ## X ## _"
29 ###FC_NAMEMANGLE="#define FC_NAMEMANGLE(X) X"
30 ###FC_NAMEMANGLE="#define FC_NAMEMANGLE(X) X ## _"
31
32 # For IEEE, use the "-ffloat-store" option
33 if test "x$IEEE" = x ; then
34 FFLAGS='-Wunused -Wuninitialized -fsecond-underscore -fconvert=big-endian'
35 FOPTIM='-O3 -funroll-loops'
36 NOOPTFLAGS='-O2 -funroll-loops'
37 NOOPTFILES='gad_c4_adv_x.F gad_u3_adv_x.F'
38 else
39 FFLAGS='-Wunused -ffloat-store -fsecond-underscore -fconvert=big-endian'
40 FOPTIM='-O0'
41 fi

  ViewVC Help
Powered by ViewVC 1.1.22