/[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.23 - (hide annotations) (download)
Fri May 12 19:08:46 2006 UTC (18 years ago) by edhill
Branch: MAIN
CVS Tags: checkpoint58l_post, checkpoint58e_post, mitgcm_mapl_00, checkpoint58u_post, checkpoint58w_post, checkpoint58r_post, checkpoint58n_post, checkpoint58x_post, checkpoint58t_post, checkpoint58h_post, checkpoint58q_post, checkpoint58j_post, checkpoint59e, checkpoint59d, checkpoint59g, checkpoint59f, checkpoint59a, checkpoint59c, checkpoint59b, checkpoint59m, checkpoint59l, checkpoint59n, checkpoint59i, checkpoint59h, checkpoint59k, checkpoint59j, checkpoint59, checkpoint58f_post, checkpoint58i_post, checkpoint58g_post, checkpoint58o_post, checkpoint58y_post, checkpoint58k_post, checkpoint58v_post, checkpoint58s_post, checkpoint58p_post, checkpoint58m_post
Changes since 1.22: +2 -1 lines
add example lines where gcc is used as the C-preprocessor

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

  ViewVC Help
Powered by ViewVC 1.1.22