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

Annotation of /MITgcm/tools/build_options/linux_amd64_g77

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


Revision 1.3 - (hide annotations) (download)
Sun Mar 29 20:32:42 2009 UTC (15 years, 1 month ago) by jmc
Branch: MAIN
CVS Tags: checkpoint61n, checkpoint61o, checkpoint61l, checkpoint61m, checkpoint61r, checkpoint61s, checkpoint61p, checkpoint61q
Changes since 1.2: +6 -4 lines
add EXTENDED_SRC_FLAG

1 edhill 1.1 #!/bin/bash
2     #
3 jmc 1.3 # $Header: /u/gcmpack/MITgcm/tools/build_options/linux_amd64_g77,v 1.2 2006/11/30 22:57:46 edhill Exp $
4 edhill 1.1 # $Name: $
5     #
6     # Build options for Suse 9 Opteron
7 jmc 1.3 # 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 edhill 1.1 #
10    
11     FC=g77
12     DEFINES='-D_BYTESWAPIO -DWORDLENGTH=4'
13     CPP='cpp -traditional -P'
14     NOOPTFLAGS='-O0'
15 jmc 1.3 EXTENDED_SRC_FLAG='-ffixed-line-length-132'
16 edhill 1.1 #MAKEDEPEND=/usr/X11R6/bin/gccmakedep
17 edhill 1.2 #MAKEDEPEND=/usr/X11R6/bin/makedepend
18 edhill 1.1 # 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 jmc 1.3 # FFLAGS="$FFLAGS -g -mfpmath=sse -msse -msse2 -fbounds-check"
25     FOPTIM='-O0'
26 edhill 1.1 fi
27 edhill 1.2
28     if test -d /usr/include/netcdf-3 ; then
29     INCLUDES='-I/usr/include/netcdf-3'
30     if test -d /usr/lib64/netcdf-3 ; then
31     if test -f /usr/lib64/netcdf-3/libnetcdf_g77.a ; then
32     LIBS='-L/usr/lib64/netcdf-3 -lnetcdf_g77'
33     else
34     LIBS='-L/usr/lib64/netcdf-3'
35     fi
36     elif test -d /usr/lib/netcdf-3 ; then
37     if test -f /usr/lib/netcdf-3/libnetcdf_g77.a ; then
38     LIBS='-L/usr/lib/netcdf-3 -lnetcdf_g77'
39     else
40     LIBS='-L/usr/lib/netcdf-3'
41     fi
42     fi
43     elif test -d /usr/include/netcdf ; then
44     INCLUDES='-I/usr/include/netcdf'
45     elif test -d /usr/local/netcdf ; then
46     INCLUDES='-I/usr/local/netcdf/include'
47     LIBS='-L/usr/local/netcdf/lib'
48     fi
49    

  ViewVC Help
Powered by ViewVC 1.1.22