#!/bin/bash # # $Header: /home/ubuntu/mnt/e9_copy/MITgcm/tools/build_options/darwin_ppc_g77,v 1.7 2010/03/21 22:22:52 jmc Exp $ # $Name: $ # tested on G4-PowerBook, 1GHz # cc-compiler is available only with the Apple Developer Tools, # so make sure that those are installed # g77 can be optained from FINK: http://fink.sourceforge.net # CPP='/usr/bin/cpp -traditional -P' FC=g77 LINK=g77 S64='$(TOOLSDIR)/set64bitConst.sh' #EH3 MAKEDEPEND='${TOOLSDIR}/xmakedepend' #EH3 MAKEDEPEND=makedepend DEFINES='-DWORDLENGTH=4' INCLUDES='-I/sw/include' LIBS='-L/sw/lib' # For IEEE, use the "-ffloat-store" option if test "x$IEEE" = x ; then FFLAGS='-Wimplicit -Wunused -Wuninitialized' FOPTIM='-O3 -funroll-loops' else FFLAGS='-Wimplicit -Wunused -ffloat-store' FOPTIM='-O0' fi #ifndef REAL4_IS_SLOW # _RS expands into real*4 and statements such as # MAX(ABS(aV3d),myNorm) in ini_cg3d.F do not work with 'g77 -O3', # so we have to lower the optimization level here to -O1; # not clear why this is so, similar statements do work in ini_cg2d.F #NOOPTFILES='ini_cg3d.F' #NOOPTFLAGS='-O1 -funroll-loops' #else NOOPTFLAGS=-O0 #endif /* REAL4_IS_SLOW */