--- MITgcm/tools/build_options/darwin_ia32_gfortran 2006/11/28 19:01:36 1.1 +++ MITgcm/tools/build_options/darwin_ia32_gfortran 2009/04/02 18:28:31 1.5 @@ -1,31 +1,41 @@ #!/bin/bash -# $Header: /home/ubuntu/mnt/e9_copy/MITgcm/tools/build_options/darwin_ia32_gfortran,v 1.1 2006/11/28 19:01:36 dfer Exp $ -# -# cc-compiler is available only with the Apple Developer Tools, -# so make sure that those are installed +# $Header: /home/ubuntu/mnt/e9_copy/MITgcm/tools/build_options/darwin_ia32_gfortran,v 1.5 2009/04/02 18:28:31 dfer Exp $ # +# tested on MacBook Pro +# on 28-Nov-2006 -CPP='/usr/bin/cpp -traditional -P -xassembler-with-cpp' +CPP='/usr/bin/cpp -traditional -P' FC=gfortran +###CC=gcc LINK=gfortran NOOPTFLAGS='-O0' +EXTENDED_SRC_FLAG='-ffixed-line-length-132' S64='$(TOOLSDIR)/set64bitConst.sh' #EH3 MAKEDEPEND='${TOOLSDIR}/xmakedepend' #EH3 MAKEDEPEND=makedepend -DEFINES='-D_BYTESWAPIO -DWORDLENGTH=4 -DNML_TERMINATOR' -INCLUDES='-I/Users/davidferreira/Documents/netcdf-3.6.1/gfortran/include' -LIBS='-L/Users/davidferreira/Documents/netcdf-3.6.1/gfortran/lib' +DEFINES='-DWORDLENGTH=4 -DNML_TERMINATOR' +INCLUDEDIRS='/sw/include' +INCLUDES='-I/sw/include' +LIBS='-L/sw/lib' + +##INCLUDEDIRS='/Users/heimbach/NetCDF/netcdf-3.6.0-p1/gfortran/include' +##INCLUDES='-I/Users/heimbach/NetCDF/netcdf-3.6.0-p1/gfortran/include' +##LIBS='-L/Users/heimbach/NetCDF/netcdf-3.6.0-p1/gfortran/lib' + +###FC_NAMEMANGLE="#define FC_NAMEMANGLE(X) _ ## X ## _" +###FC_NAMEMANGLE="#define FC_NAMEMANGLE(X) X" +###FC_NAMEMANGLE="#define FC_NAMEMANGLE(X) X ## _" # For IEEE, use the "-ffloat-store" option if test "x$IEEE" = x ; then -# FFLAGS='-Wunused -Wuninitialized -fsecond-underscore' - FFLAGS='-Wunused -Wuninitialized' + FFLAGS='-Wunused -Wuninitialized -fsecond-underscore -fconvert=big-endian' FOPTIM='-O3 -funroll-loops' -# FOPTIM='-O3 -malign-double -funroll-loops' + NOOPTFLAGS='-O2 -funroll-loops' + NOOPTFILES='gad_c4_adv_x.F gad_u3_adv_x.F' else - FFLAGS='-Wunused -ffloat-store -fsecond-underscore' + FFLAGS='-Wunused -ffloat-store -fsecond-underscore -fconvert=big-endian' FOPTIM='-O0' fi