/[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.1 by edhill, Sat Jan 3 05:31:36 2004 UTC revision 1.8 by jmc, Mon May 16 19:03:37 2011 UTC
# Line 4  Line 4 
4  #  $Name$  #  $Name$
5  #  #
6  # Build options for Suse 9 Opteron  # Build options for Suse 9 Opteron
7  # tested on (Linux eaps-dhcp-127 2.4.21-102-smp #1 SMP Wed Sep 24 13:55:59 UTC 2003 x86_64 x86_64 x86_64 GNU/Linux) system 20031107  # tested on Linux 2.4.21-102-smp (x86_64),
8    #           Linux 2.6.26.8-57.fc8 (x86_64), Linux 2.6.27.9-159.fc10.x86_64
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  #MAKEDEPEND=/usr/X11R6/bin/gccmakedep  EXTENDED_SRC_FLAG='-ffixed-line-length-132'
17  MAKEDEPEND=/usr/X11R6/bin/makedepend  GET_FC_VERSION="--version"
18    
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'
22      FOPTIM='-O3 -funroll-loops'      FOPTIM='-O3 -funroll-loops'
23  else  else
24      FFLAGS='-Wimplicit -Wunused -ffloat-store'      FFLAGS='-Wimplicit -Wunused -ffloat-store'
25      FOPTIM='-O0 '  #   FFLAGS="$FFLAGS -g -mfpmath=sse -msse -msse2 -fbounds-check"
26        FOPTIM='-O0'
27    fi
28    # for big objects:
29    FFLAGS="$FFLAGS -fPIC"
30    CFLAGS="-O0 -fPIC"
31    
32    if test -d /usr/include/netcdf-3 ; then
33    #-- some FedoraCore standard location used to be "netcdf-3"
34        INCLUDES='-I/usr/include/netcdf-3'
35        if test -d /usr/lib64/netcdf-3 ; then
36            if test -f /usr/lib64/netcdf-3/libnetcdf_g77.a ; then
37                LIBS='-L/usr/lib64/netcdf-3 -lnetcdf_g77'
38            else
39                LIBS='-L/usr/lib64/netcdf-3'
40            fi
41        elif test -d /usr/lib/netcdf-3 ; then
42            if test -f /usr/lib/netcdf-3/libnetcdf_g77.a ; then
43                LIBS='-L/usr/lib/netcdf-3 -lnetcdf_g77'
44            else
45                LIBS='-L/usr/lib/netcdf-3'
46            fi
47        fi
48    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
50    #   standard one (for gfortran, gcc 4.x). But uses same include files.
51        if test -d /usr/include/netcdf ; then
52           INCLUDES='-I/usr/include/netcdf'
53        fi
54        if test -d /usr/lib64/netcdf34 ; then
55            if test -f /usr/lib64/netcdf34/libnetcdf_g77.a ; then
56                LIBS='-L/usr/lib64/netcdf34 -lnetcdf_g77'
57            else
58                LIBS='-L/usr/lib64/netcdf34'
59            fi
60        elif test -d /usr/lib/netcdf34 ; then
61            if test -f /usr/lib/netcdf34/libnetcdf_g77.a ; then
62                LIBS='-L/usr/lib/netcdf34 -lnetcdf_g77'
63            else
64                LIBS='-L/usr/lib/netcdf34'
65            fi
66        fi
67    elif test -d /usr/local/netcdf ; then
68        INCLUDES='-I/usr/local/netcdf/include'
69        LIBS='-L/usr/local/netcdf/lib'
70  fi  fi
71    

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

  ViewVC Help
Powered by ViewVC 1.1.22