/[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.25 - (hide annotations) (download)
Fri Jan 2 20:40:42 2009 UTC (15 years, 4 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint62, checkpoint62c, checkpoint62b, checkpoint62a, checkpoint62g, checkpoint62f, checkpoint62e, checkpoint62d, checkpoint62k, checkpoint62j, checkpoint62i, checkpoint62h, checkpoint62o, checkpoint62n, checkpoint62m, checkpoint62l, checkpoint61n, checkpoint61o, checkpoint61l, checkpoint61m, checkpoint61j, checkpoint61k, checkpoint61h, checkpoint61i, checkpoint61v, checkpoint61w, checkpoint61t, checkpoint61u, checkpoint61r, checkpoint61s, checkpoint61p, checkpoint61q, checkpoint61z, checkpoint61x, checkpoint61y
Changes since 1.24: +2 -1 lines
add EXTENDED_SRC_FLAG.

1 edhill 1.1 #!/bin/bash
2     #
3 jmc 1.25 # $Header: /u/gcmpack/MITgcm/tools/build_options/linux_ia32_g77,v 1.24 2008/02/25 18:59:37 jmc 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 edhill 1.23 # CPP='gcc -E -traditional -P -'
12 edhill 1.1 CPP='cpp -traditional -P'
13     NOOPTFLAGS='-O0'
14 jmc 1.25 EXTENDED_SRC_FLAG='-ffixed-line-length-132'
15 edhill 1.5
16 edhill 1.1 if test "x$IEEE" = x ; then
17 edhill 1.7 # No need for IEEE-754
18 edhill 1.1 FFLAGS='-Wimplicit -Wunused -Wuninitialized'
19     FOPTIM='-O3 -malign-double -funroll-loops'
20     else
21 edhill 1.7 # Try to follow IEEE-754
22 edhill 1.14 has_sse2=f
23     grep flags /proc/cpuinfo | grep sse2 > /dev/null 2>&1 && has_sse2=t
24 dimitri 1.18
25 edhill 1.14 if test "x$has_sse2" = xt ; then
26 edhill 1.16 FFLAGS='-Wimplicit -Wunused -mfpmath=sse -msse -msse2'
27 edhill 1.14 else
28 edhill 1.16 FFLAGS='-Wimplicit -Wunused -ffloat-store'
29 edhill 1.14 fi
30 edhill 1.15 # echo 'FFLAGS="'$FFLAGS'"'
31 edhill 1.1 FOPTIM='-O0 -malign-double'
32     fi
33    
34 edhill 1.12 if test -d /usr/include/netcdf-3 ; then
35     INCLUDES='-I/usr/include/netcdf-3'
36 edhill 1.22 if 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 edhill 1.19 fi
42     fi
43 edhill 1.12 elif test -d /usr/include/netcdf ; then
44     INCLUDES='-I/usr/include/netcdf'
45 heimbach 1.17 elif test -d /usr/local/netcdf ; then
46     INCLUDES='-I/usr/local/netcdf/include'
47     LIBS='-L/usr/local/netcdf/lib'
48 edhill 1.12 fi
49 ce107 1.20 GSLINC=''
50     GSLLIB='-lgsl -lgslcblas'
51     PAPIINC='-I/usr/local/pkg/papi/papi-3.0.8.1/p4/include'
52     PAPILIB='-L/usr/local/pkg/papi/papi-3.0.8.1/p4/lib -lpapi'
53 edhill 1.22

  ViewVC Help
Powered by ViewVC 1.1.22