/[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.3 by jmc, Sun Mar 29 20:32:42 2009 UTC revision 1.6 by jmc, Mon Dec 13 22:47:22 2010 UTC
# Line 9  Line 9 
9  #  #
10    
11  FC=g77  FC=g77
12  DEFINES='-D_BYTESWAPIO -DWORDLENGTH=4'  DEFINES='-D_BYTESWAPIO -DWORDLENGTH=4 -DNML_EXTENDED_F77'
13  CPP='cpp  -traditional -P'  CPP='cpp  -traditional -P'
14  NOOPTFLAGS='-O0'  NOOPTFLAGS='-O0'
15  EXTENDED_SRC_FLAG='-ffixed-line-length-132'  EXTENDED_SRC_FLAG='-ffixed-line-length-132'
16  #MAKEDEPEND=/usr/X11R6/bin/gccmakedep  GET_FC_VERSION="-v"
17  #MAKEDEPEND=/usr/X11R6/bin/makedepend  
18  #  For IEEE, use the "-ffloat-store" option  #  For IEEE, use the "-ffloat-store" option
19  if test "x$IEEE" = x ; then  if test "x$IEEE" = x ; then
20      FFLAGS='-Wimplicit -Wunused -Wuninitialized'      FFLAGS='-Wimplicit -Wunused -Wuninitialized'
# Line 24  else Line 24  else
24  #   FFLAGS="$FFLAGS -g -mfpmath=sse -msse -msse2 -fbounds-check"  #   FFLAGS="$FFLAGS -g -mfpmath=sse -msse -msse2 -fbounds-check"
25      FOPTIM='-O0'      FOPTIM='-O0'
26  fi  fi
27    # for big objects:
28    FFLAGS="$FFLAGS -fPIC"
29    CFLAGS="-O0 -fPIC"
30    
31  if test -d /usr/include/netcdf-3 ; then  if test -d /usr/include/netcdf-3 ; then
32    #-- some FedoraCore standard location used to be "netcdf-3"
33      INCLUDES='-I/usr/include/netcdf-3'      INCLUDES='-I/usr/include/netcdf-3'
34      if test -d /usr/lib64/netcdf-3 ; then      if test -d /usr/lib64/netcdf-3 ; then
35          if test -f /usr/lib64/netcdf-3/libnetcdf_g77.a ; then          if test -f /usr/lib64/netcdf-3/libnetcdf_g77.a ; then
# Line 41  if test -d /usr/include/netcdf-3 ; then Line 45  if test -d /usr/include/netcdf-3 ; then
45          fi          fi
46      fi      fi
47  elif test -d /usr/include/netcdf ; then  elif test -d /usr/include/netcdf ; then
48    #-- allows a "compat"(gcc 3.4) 2nd version of libs for g77 , next to the
49    #   standard one (for gfortran, gcc 4.x). But uses same include files.
50      INCLUDES='-I/usr/include/netcdf'      INCLUDES='-I/usr/include/netcdf'
51        if test -d /usr/lib64/netcdf34 ; then
52            if test -f /usr/lib64/netcdf34/libnetcdf_g77.a ; then
53                LIBS='-L/usr/lib64/netcdf34 -lnetcdf_g77'
54            else
55                LIBS='-L/usr/lib64/netcdf34'
56            fi
57        elif test -d /usr/lib/netcdf34 ; then
58            if test -f /usr/lib/netcdf34/libnetcdf_g77.a ; then
59                LIBS='-L/usr/lib/netcdf34 -lnetcdf_g77'
60            else
61                LIBS='-L/usr/lib/netcdf34'
62            fi
63        fi
64  elif test -d /usr/local/netcdf ; then  elif test -d /usr/local/netcdf ; then
65      INCLUDES='-I/usr/local/netcdf/include'      INCLUDES='-I/usr/local/netcdf/include'
66      LIBS='-L/usr/local/netcdf/lib'      LIBS='-L/usr/local/netcdf/lib'

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

  ViewVC Help
Powered by ViewVC 1.1.22