/[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.5 by edhill, Thu Jan 15 19:19:59 2004 UTC revision 1.23 by edhill, Fri May 12 19:08:46 2006 UTC
# Line 6  Line 6 
6    
7    
8  FC=g77  FC=g77
9    CC=gcc
10  DEFINES='-D_BYTESWAPIO -DWORDLENGTH=4'  DEFINES='-D_BYTESWAPIO -DWORDLENGTH=4'
11    # CPP='gcc -E -traditional -P -'
12  CPP='cpp  -traditional -P'  CPP='cpp  -traditional -P'
13  NOOPTFLAGS='-O0'  NOOPTFLAGS='-O0'
14    
 # netcdf  
 LIBS="-lnetcdf"  
   
 #  For IEEE, use the "-ffloat-store" option  
15  if test "x$IEEE" = x ; then  if test "x$IEEE" = x ; then
16        #  No need for IEEE-754
17      FFLAGS='-Wimplicit -Wunused -Wuninitialized'      FFLAGS='-Wimplicit -Wunused -Wuninitialized'
18      FOPTIM='-O3 -malign-double -funroll-loops'      FOPTIM='-O3 -malign-double -funroll-loops'
19  else  else
20      FFLAGS='-Wimplicit -Wunused -ffloat-store'      #  Try to follow IEEE-754
21        has_sse2=f
22        grep flags /proc/cpuinfo | grep sse2 > /dev/null 2>&1  &&  has_sse2=t
23    
24        # older OS on sea.mit.edu does not support sse
25        if [ `uname -n` = "sea" ]; then has_sse2=f; fi
26    
27        if test "x$has_sse2" = xt ; then
28            FFLAGS='-Wimplicit -Wunused -mfpmath=sse -msse -msse2'
29        else
30            FFLAGS='-Wimplicit -Wunused -ffloat-store'
31        fi
32        #  echo 'FFLAGS="'$FFLAGS'"'
33      FOPTIM='-O0 -malign-double'      FOPTIM='-O0 -malign-double'
34  fi  fi
35    
36    if test -d /usr/include/netcdf-3 ; then
37        INCLUDES='-I/usr/include/netcdf-3'
38        if test -d /usr/lib/netcdf-3 ; then
39            if test -f /usr/lib/netcdf-3/libnetcdf_g77.a ; then
40                LIBS='-L/usr/lib/netcdf-3 -lnetcdf_g77'
41            else
42                LIBS='-L/usr/lib/netcdf-3'
43            fi
44        fi
45    elif test -d /usr/include/netcdf ; then
46        INCLUDES='-I/usr/include/netcdf'
47    elif test -d /usr/local/netcdf ; then
48        INCLUDES='-I/usr/local/netcdf/include'
49        LIBS='-L/usr/local/netcdf/lib'
50    fi
51    GSLINC=''
52    GSLLIB='-lgsl -lgslcblas'
53    PAPIINC='-I/usr/local/pkg/papi/papi-3.0.8.1/p4/include'
54    PAPILIB='-L/usr/local/pkg/papi/papi-3.0.8.1/p4/lib -lpapi'
55    

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.23

  ViewVC Help
Powered by ViewVC 1.1.22