/[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.17 - (hide annotations) (download)
Fri Mar 25 21:35:28 2005 UTC (19 years, 1 month ago) by heimbach
Branch: MAIN
CVS Tags: checkpoint57o_post, checkpoint57m_post, checkpoint57k_post, checkpoint57g_post, checkpoint57i_post, checkpoint57g_pre, checkpoint57f_pre, checkpoint57h_done, checkpoint57n_post, checkpoint57p_post, checkpoint57f_post, checkpoint57q_post, checkpoint57j_post, checkpoint57h_pre, checkpoint57l_post, checkpoint57h_post
Changes since 1.16: +4 -1 lines
Add more tests on where netcdf might be located.
Doesnt seem to be a robust solution...

1 edhill 1.1 #!/bin/bash
2     #
3 heimbach 1.17 # $Header: /u/gcmpack/MITgcm/tools/build_options/linux_ia32_g77,v 1.16 2005/01/31 16:41:10 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     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     if test "x$has_sse2" = xt ; then
23 edhill 1.16 FFLAGS='-Wimplicit -Wunused -mfpmath=sse -msse -msse2'
24 edhill 1.14 else
25 edhill 1.16 FFLAGS='-Wimplicit -Wunused -ffloat-store'
26 edhill 1.14 fi
27 edhill 1.15 # echo 'FFLAGS="'$FFLAGS'"'
28 edhill 1.1 FOPTIM='-O0 -malign-double'
29     fi
30    
31 edhill 1.12 if test -d /usr/include/netcdf-3 ; then
32     INCLUDES='-I/usr/include/netcdf-3'
33     LIBS='-L/usr/lib/netcdf-3'
34     elif test -d /usr/include/netcdf ; then
35     INCLUDES='-I/usr/include/netcdf'
36 heimbach 1.17 elif test -d /usr/local/netcdf ; then
37     INCLUDES='-I/usr/local/netcdf/include'
38     LIBS='-L/usr/local/netcdf/lib'
39 edhill 1.12 fi
40 edhill 1.1

  ViewVC Help
Powered by ViewVC 1.1.22