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

Contents of /MITgcm/tools/build_options/linux_amd64_g77

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


Revision 1.4 - (show annotations) (download)
Tue Jul 21 19:55:13 2009 UTC (14 years, 9 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint62, checkpoint62c, checkpoint62b, checkpoint62a, checkpoint62g, checkpoint62f, checkpoint62e, checkpoint62d, checkpoint62k, checkpoint62j, checkpoint62i, checkpoint62h, checkpoint62l, checkpoint61v, checkpoint61w, checkpoint61t, checkpoint61u, checkpoint61z, checkpoint61x, checkpoint61y
Changes since 1.3: +17 -1 lines
search for g77 compatible netcdf lib in /usr/lib*/netcdf34 (suffix "34" similar
 to other "compat" product, e.g.: gcc34, g++34) keeping usual version (for
 gfortran, gcc 4.x) in standard location. Uses same standard include files.

1 #!/bin/bash
2 #
3 # $Header: /u/gcmpack/MITgcm/tools/build_options/linux_amd64_g77,v 1.3 2009/03/29 20:32:42 jmc Exp $
4 # $Name: $
5 #
6 # Build options for Suse 9 Opteron
7 # 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
12 DEFINES='-D_BYTESWAPIO -DWORDLENGTH=4'
13 CPP='cpp -traditional -P'
14 NOOPTFLAGS='-O0'
15 EXTENDED_SRC_FLAG='-ffixed-line-length-132'
16 #MAKEDEPEND=/usr/X11R6/bin/gccmakedep
17 #MAKEDEPEND=/usr/X11R6/bin/makedepend
18 # For IEEE, use the "-ffloat-store" option
19 if test "x$IEEE" = x ; then
20 FFLAGS='-Wimplicit -Wunused -Wuninitialized'
21 FOPTIM='-O3 -funroll-loops'
22 else
23 FFLAGS='-Wimplicit -Wunused -ffloat-store'
24 # FFLAGS="$FFLAGS -g -mfpmath=sse -msse -msse2 -fbounds-check"
25 FOPTIM='-O0'
26 fi
27
28 if test -d /usr/include/netcdf-3 ; then
29 #-- some FedoraCore standard location used to be "netcdf-3"
30 INCLUDES='-I/usr/include/netcdf-3'
31 if test -d /usr/lib64/netcdf-3 ; then
32 if test -f /usr/lib64/netcdf-3/libnetcdf_g77.a ; then
33 LIBS='-L/usr/lib64/netcdf-3 -lnetcdf_g77'
34 else
35 LIBS='-L/usr/lib64/netcdf-3'
36 fi
37 elif test -d /usr/lib/netcdf-3 ; then
38 if test -f /usr/lib/netcdf-3/libnetcdf_g77.a ; then
39 LIBS='-L/usr/lib/netcdf-3 -lnetcdf_g77'
40 else
41 LIBS='-L/usr/lib/netcdf-3'
42 fi
43 fi
44 elif test -d /usr/include/netcdf ; then
45 #-- allows a "compat"(gcc 3.4) 2nd version of libs for g77 , next to the
46 # standard one (for gfortran, gcc 4.x). But uses same include files.
47 INCLUDES='-I/usr/include/netcdf'
48 if test -d /usr/lib64/netcdf34 ; then
49 if test -f /usr/lib64/netcdf34/libnetcdf_g77.a ; then
50 LIBS='-L/usr/lib64/netcdf34 -lnetcdf_g77'
51 else
52 LIBS='-L/usr/lib64/netcdf34'
53 fi
54 elif test -d /usr/lib/netcdf34 ; then
55 if test -f /usr/lib/netcdf34/libnetcdf_g77.a ; then
56 LIBS='-L/usr/lib/netcdf34 -lnetcdf_g77'
57 else
58 LIBS='-L/usr/lib/netcdf34'
59 fi
60 fi
61 elif test -d /usr/local/netcdf ; then
62 INCLUDES='-I/usr/local/netcdf/include'
63 LIBS='-L/usr/local/netcdf/lib'
64 fi

  ViewVC Help
Powered by ViewVC 1.1.22