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

Diff of /MITgcm/tools/build_options/linux_amd64_g77

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

revision 1.4 by jmc, Tue Jul 21 19:55:13 2009 UTC revision 1.8 by jmc, Mon May 16 19:03:37 2011 UTC
# Line 9  Line 9 
9  #  #
10    
11  FC=g77  FC=g77
12  DEFINES='-D_BYTESWAPIO -DWORDLENGTH=4'  CC=gcc34
13    DEFINES='-D_BYTESWAPIO -DWORDLENGTH=4 -DNML_EXTENDED_F77'
14  CPP='cpp  -traditional -P'  CPP='cpp  -traditional -P'
15  NOOPTFLAGS='-O0'  NOOPTFLAGS='-O0'
16  EXTENDED_SRC_FLAG='-ffixed-line-length-132'  EXTENDED_SRC_FLAG='-ffixed-line-length-132'
17  #MAKEDEPEND=/usr/X11R6/bin/gccmakedep  GET_FC_VERSION="--version"
18  #MAKEDEPEND=/usr/X11R6/bin/makedepend  
19  #  For IEEE, use the "-ffloat-store" option  #  For IEEE, use the "-ffloat-store" option
20  if test "x$IEEE" = x ; then  if test "x$IEEE" = x ; then
21      FFLAGS='-Wimplicit -Wunused -Wuninitialized'      FFLAGS='-Wimplicit -Wunused -Wuninitialized'
# Line 24  else Line 25  else
25  #   FFLAGS="$FFLAGS -g -mfpmath=sse -msse -msse2 -fbounds-check"  #   FFLAGS="$FFLAGS -g -mfpmath=sse -msse -msse2 -fbounds-check"
26      FOPTIM='-O0'      FOPTIM='-O0'
27  fi  fi
28    # for big objects:
29    FFLAGS="$FFLAGS -fPIC"
30    CFLAGS="-O0 -fPIC"
31    
32  if test -d /usr/include/netcdf-3 ; then  if test -d /usr/include/netcdf-3 ; then
33  #-- some FedoraCore standard location used to be "netcdf-3"  #-- some FedoraCore standard location used to be "netcdf-3"
# Line 41  if test -d /usr/include/netcdf-3 ; then Line 45  if test -d /usr/include/netcdf-3 ; then
45              LIBS='-L/usr/lib/netcdf-3'              LIBS='-L/usr/lib/netcdf-3'
46          fi          fi
47      fi      fi
48  elif test -d /usr/include/netcdf ; then  elif test -d /usr/include/netcdf -o -f /usr/include/netcdf.h ; then
49  #-- allows a "compat"(gcc 3.4) 2nd version of libs for g77 , next to the  #-- allows a "compat"(gcc 3.4) 2nd version of libs for g77 , next to the
50  #   standard one (for gfortran, gcc 4.x). But uses same include files.  #   standard one (for gfortran, gcc 4.x). But uses same include files.
51      INCLUDES='-I/usr/include/netcdf'      if test -d /usr/include/netcdf ; then
52           INCLUDES='-I/usr/include/netcdf'
53        fi
54      if test -d /usr/lib64/netcdf34 ; then      if test -d /usr/lib64/netcdf34 ; then
55          if test -f /usr/lib64/netcdf34/libnetcdf_g77.a ; then          if test -f /usr/lib64/netcdf34/libnetcdf_g77.a ; then
56              LIBS='-L/usr/lib64/netcdf34 -lnetcdf_g77'              LIBS='-L/usr/lib64/netcdf34 -lnetcdf_g77'

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

  ViewVC Help
Powered by ViewVC 1.1.22