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

Diff of /MITgcm/tools/build_options/linux_ia32_g77

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

revision 1.13 by jmc, Thu Jan 27 14:20:06 2005 UTC revision 1.27 by jmc, Wed Dec 15 17:08:24 2010 UTC
# Line 4  Line 4 
4  #  $Name$  #  $Name$
5  #  #
6    
   
7  FC=g77  FC=g77
8  CC=gcc  CC=gcc
9  DEFINES='-D_BYTESWAPIO -DWORDLENGTH=4'  DEFINES='-D_BYTESWAPIO -DWORDLENGTH=4 -DNML_EXTENDED_F77'
10  CPP='cpp  -traditional -P'  CPP='cpp  -traditional -P'
11  NOOPTFLAGS='-O0'  NOOPTFLAGS='-O0'
12    EXTENDED_SRC_FLAG='-ffixed-line-length-132'
13    GET_FC_VERSION="--version"
14    
15  if test "x$IEEE" = x ; then  if test "x$IEEE" = x ; then
16      #  No need for IEEE-754      #  No need for IEEE-754
# Line 17  if test "x$IEEE" = x ; then Line 18  if test "x$IEEE" = x ; then
18      FOPTIM='-O3 -malign-double -funroll-loops'      FOPTIM='-O3 -malign-double -funroll-loops'
19  else  else
20      #  Try to follow IEEE-754      #  Try to follow IEEE-754
21      FFLAGS='-Wimplicit -Wunused -ffloat-store -mfpmath=sse -msse -msse2'      has_sse2=f
22        grep flags /proc/cpuinfo | grep sse2 > /dev/null 2>&1  &&  has_sse2=t
23    
24        if test "x$has_sse2" = xt ; then
25            FFLAGS='-Wimplicit -Wunused -mfpmath=sse -msse -msse2'
26        else
27            FFLAGS='-Wimplicit -Wunused -ffloat-store'
28        fi
29        #  echo 'FFLAGS="'$FFLAGS'"'
30      FOPTIM='-O0 -malign-double'      FOPTIM='-O0 -malign-double'
31  fi  fi
32    
33  if test -d /usr/include/netcdf-3 ; then  if test -d /usr/include/netcdf-3 ; then
34      INCLUDES='-I/usr/include/netcdf-3'      INCLUDES='-I/usr/include/netcdf-3'
35      LIBS='-L/usr/lib/netcdf-3'      if test -d /usr/lib/netcdf-3 ; then
36            if test -f /usr/lib/netcdf-3/libnetcdf_g77.a ; then
37                LIBS='-L/usr/lib/netcdf-3 -lnetcdf_g77'
38            else
39                LIBS='-L/usr/lib/netcdf-3'
40            fi
41        fi
42  elif test -d /usr/include/netcdf ; then  elif test -d /usr/include/netcdf ; then
43      INCLUDES='-I/usr/include/netcdf'      INCLUDES='-I/usr/include/netcdf'
44    elif test -d /usr/local/netcdf ; then
45        INCLUDES='-I/usr/local/netcdf/include'
46        LIBS='-L/usr/local/netcdf/lib'
47  fi  fi
48    GSLINC=''
49    GSLLIB='-lgsl -lgslcblas'
50    PAPIINC='-I/usr/local/pkg/papi/papi-3.0.8.1/p4/include'
51    PAPILIB='-L/usr/local/pkg/papi/papi-3.0.8.1/p4/lib -lpapi'
52    

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.27

  ViewVC Help
Powered by ViewVC 1.1.22