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

Diff of /MITgcm/tools/build_options/darwin_ppc_g77

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

revision 1.6 by mlosch, Sat Oct 25 17:13:49 2008 UTC revision 1.8 by jmc, Sun Dec 19 22:42:23 2010 UTC
# Line 1  Line 1 
1  #!/bin/bash  #!/bin/bash
   
 # $Header$  
2  #  #
3    # $Header$
4    # $Name$
5    
6  # tested on G4-PowerBook, 1GHz  # tested on G4-PowerBook, 1GHz
7  # cc-compiler is available only with the Apple Developer Tools,  # cc-compiler is available only with the Apple Developer Tools,
8  # so make sure that those are installed  # so make sure that those are installed
9  # g77 can be optained from FINK: http://fink.sourceforge.net  # g77 can be optained from FINK: http://fink.sourceforge.net
10  #  #
11    
 CPP='/usr/bin/cpp -traditional -P'  
12  FC=g77  FC=g77
13  LINK=g77  LINK=g77
14    
15  S64='$(TOOLSDIR)/set64bitConst.sh'  S64='$(TOOLSDIR)/set64bitConst.sh'
16  #EH3 MAKEDEPEND='${TOOLSDIR}/xmakedepend'  #EH3 MAKEDEPEND='${TOOLSDIR}/xmakedepend'
17  #EH3 MAKEDEPEND=makedepend  #EH3 MAKEDEPEND=makedepend
18  DEFINES='-DWORDLENGTH=4'  DEFINES='-DWORDLENGTH=4 -DNML_EXTENDED_F77'
19    CPP='/usr/bin/cpp -traditional -P'
20    
21    EXTENDED_SRC_FLAG='-ffixed-line-length-132'
22    GET_FC_VERSION="--version"
23    
24  INCLUDES='-I/sw/include'  INCLUDES='-I/sw/include'
25  LIBS='-L/sw/lib'  LIBS='-L/sw/lib'
26    
# Line 28  else Line 33  else
33      FOPTIM='-O0'      FOPTIM='-O0'
34  fi  fi
35  #ifndef REAL4_IS_SLOW  #ifndef REAL4_IS_SLOW
36  # _RS expands into real*4 and statements such as  # _RS expands into real*4 and statements such as
37  # MAX(ABS(aV3d),myNorm) in ini_cg3d.F do not work with 'g77 -O3',  # MAX(ABS(aV3d),myNorm) in ini_cg3d.F do not work with 'g77 -O3',
38  # so we have to lower the optimization level here to -O1;  # so we have to lower the optimization level here to -O1;
39  # not clear why this is so, similar statements do work in ini_cg2d.F  # not clear why this is so, similar statements do work in ini_cg2d.F
# Line 37  fi Line 42  fi
42  #else  #else
43  NOOPTFLAGS=-O0  NOOPTFLAGS=-O0
44  #endif /* REAL4_IS_SLOW */  #endif /* REAL4_IS_SLOW */
   
   

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.8

  ViewVC Help
Powered by ViewVC 1.1.22