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

Annotation of /MITgcm/tools/build_options/linux_ia32_g77

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


Revision 1.21 - (hide annotations) (download)
Thu Feb 9 20:19:20 2006 UTC (18 years, 3 months ago) by edhill
Branch: MAIN
Changes since 1.20: +10 -6 lines
add warning about inappropriate user masks and/or file permissions that
  will cause the file dependency code to break (I think this fixes the
  problem reported by S. Vinogradov -- will need testing) :
  http://forge.csail.mit.edu/pipermail/mitgcm-support/2006-February/003781.html

1 edhill 1.1 #!/bin/bash
2     #
3 edhill 1.21 # $Header: /u/gcmpack/MITgcm/tools/build_options/linux_ia32_g77,v 1.20 2005/12/22 01:32:19 ce107 Exp $
4 edhill 1.4 # $Name: $
5 edhill 1.1 #
6    
7    
8     FC=g77
9 edhill 1.7 CC=gcc
10 edhill 1.1 DEFINES='-D_BYTESWAPIO -DWORDLENGTH=4'
11     CPP='cpp -traditional -P'
12     NOOPTFLAGS='-O0'
13 edhill 1.5
14 edhill 1.1 if test "x$IEEE" = x ; then
15 edhill 1.7 # No need for IEEE-754
16 edhill 1.1 FFLAGS='-Wimplicit -Wunused -Wuninitialized'
17     FOPTIM='-O3 -malign-double -funroll-loops'
18     else
19 edhill 1.7 # Try to follow IEEE-754
20 edhill 1.14 has_sse2=f
21     grep flags /proc/cpuinfo | grep sse2 > /dev/null 2>&1 && has_sse2=t
22 dimitri 1.18
23     # older OS on sea.mit.edu does not support sse
24     if [ `uname -n` = "sea" ]; then has_sse2=f; fi
25    
26 edhill 1.14 if test "x$has_sse2" = xt ; then
27 edhill 1.16 FFLAGS='-Wimplicit -Wunused -mfpmath=sse -msse -msse2'
28 edhill 1.14 else
29 edhill 1.16 FFLAGS='-Wimplicit -Wunused -ffloat-store'
30 edhill 1.14 fi
31 edhill 1.15 # echo 'FFLAGS="'$FFLAGS'"'
32 edhill 1.1 FOPTIM='-O0 -malign-double'
33     fi
34    
35 edhill 1.12 if test -d /usr/include/netcdf-3 ; then
36     INCLUDES='-I/usr/include/netcdf-3'
37 edhill 1.21 if test -f /usr/lib/libnetcdf_g77.so ; then
38     LIBS='-lnetcdf_g77'
39     else
40     if test -d /usr/lib/netcdf-3 ; then
41     if test -f /usr/lib/netcdf-3/libnetcdf_g77.a ; then
42     LIBS='-L/usr/lib/netcdf-3 -lnetcdf_g77'
43     else
44     LIBS='-L/usr/lib/netcdf-3'
45     fi
46 edhill 1.19 fi
47     fi
48 edhill 1.12 elif test -d /usr/include/netcdf ; then
49     INCLUDES='-I/usr/include/netcdf'
50 heimbach 1.17 elif test -d /usr/local/netcdf ; then
51     INCLUDES='-I/usr/local/netcdf/include'
52     LIBS='-L/usr/local/netcdf/lib'
53 edhill 1.12 fi
54 ce107 1.20 GSLINC=''
55     GSLLIB='-lgsl -lgslcblas'
56     PAPIINC='-I/usr/local/pkg/papi/papi-3.0.8.1/p4/include'
57     PAPILIB='-L/usr/local/pkg/papi/papi-3.0.8.1/p4/lib -lpapi'

  ViewVC Help
Powered by ViewVC 1.1.22