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

Contents of /MITgcm/tools/build_options/linux_ia32_open64

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


Revision 1.2 - (show annotations) (download)
Thu Jan 17 04:52:49 2008 UTC (16 years, 3 months ago) by utke
Branch: MAIN
CVS Tags: checkpoint60, checkpoint61, checkpoint59q, checkpoint59p, checkpoint59r, checkpoint59o, checkpoint59n, checkpoint61f, checkpoint61g, checkpoint61d, checkpoint61e, checkpoint61b, checkpoint61c, checkpoint61a, checkpoint61n, checkpoint61o, checkpoint61l, checkpoint61m, checkpoint61j, checkpoint61k, checkpoint61h, checkpoint61i, checkpoint61p, checkpoint61q
Changes since 1.1: +3 -1 lines
extra variables F90C and F90FIXEDFORMAT

1 #!/bin/bash
2 #
3 # $Header: /u/gcmpack/MITgcm/tools/build_options/linux_ia32_open64,v 1.1 2007/11/26 19:18:46 ce107 Exp $
4 # $Name: $
5 #
6 # Build options for Fedore Core 4 i686 Pentium4
7 # tested on (Linux lagoon 2.6.17-1.2142_FC4smp #1 SMP Tue Jul 11 22:57:02 EDT 2006 i686 i686 i386 GNU/Linux) system 20071121
8 #
9
10 CC=opencc
11 FC=openf90
12 F90C=openf90
13 F90FIXEDFORMAT='-fixedform -x f95'
14 LD=openf90
15 DEFINES='-DWORDLENGTH=4'
16 CPP='cpp -traditional -P'
17 MAKEDEPEND=/usr/X11R6/bin/makedepend
18 NOOPTFLAGS='-O0 -m32 -g -fPIC'
19 NOOPTFILES=''
20
21 if test "x$DEVEL" != x ; then
22 FFLAGS='-m32 -convert big_endian -fPIC -ffortran-bounds-check -trapuv -g'
23 else
24 FFLAGS='-m32 -convert big_endian -fPIC'
25 fi
26
27 if test "x$IEEE" = x ; then
28 # No need for IEEE-754
29 FOPTIM='-O3 -LNO:fusion=2 -OPT:roundoff=1:IEEE_arithmetic=3' # -funsafe-math-optimizations'
30 else
31 # Try to follow IEEE-754
32 FOPTIM='-O3 -LNO:fusion=2 -OPT:roundoff=0:IEEE_arithmetic=1 -fmath-errno -fno-fast-math'
33 fi
34
35 F90FLAGS=$FFLAGS
36 F90OPTIM=$FOPTIM
37 CFLAGS='-O3 -m32 -fPIC'
38 GSLLIB='-lgsl -lgslcblas'
39
40 if [ "x$NETCDF_ROOT" != x ] ; then
41 INCLUDEDIR="${NETCDF_ROOT}/include"
42 INCLUDES="-I${NETCDF_ROOT}/include"
43 LIBDIR="${NETCDF_ROOT}/lib"
44 LIBS="-L${NETCDF_ROOT}/lib"
45 elif [ "x$NETCDF_HOME" != x ]; then
46 INCLUDEDIR="${NETCDF_HOME}/include"
47 INCLUDES="-I${NETCDF_HOME}/include"
48 LIBDIR="${NETCDF_HOME}/lib"
49 LIBS="-L${NETCDF_HOME}/lib"
50 elif [ "x$NETCDF_INC" != x -a "x$NETCDF_LIB" != x ]; then
51 NETCDF_INC=`echo $NETCDF_INC | sed 's/-I//g'`
52 NETCDF_LIB=`echo $NETCDF_LIB | sed 's/-L//g'`
53 INCLUDEDIR="${NETCDF_INC}"
54 INCLUDES="-I${NETCDF_INC}"
55 LIBDIR="${NETCDF_LIB}"
56 LIBS="-L${NETCDF_LIB}"
57 elif [ "x$NETCDF_INCDIR" != x -a "x$NETCDF_LIBDIR" != x ]; then
58 INCLUDEDIR="${NETCDF_INCDIR}"
59 INCLUDES="-I${NETCDF_INCDIR}"
60 LIBDIR="${NETCDF_LIBDIR}"
61 LIBS="-L${NETCDF_LIBDIR}"
62 elif test -d /usr/include/netcdf-3 ; then
63 INCLUDES='-I/usr/include/netcdf-3'
64 LIBS='-L/usr/lib/netcdf-3 -lnetcdf_g77'
65 elif test -d /usr/include/netcdf ; then
66 INCLUDES='-I/usr/include/netcdf'
67 elif test -d /usr/local/netcdf ; then
68 INCLUDES='-I/usr/local/netcdf/include'
69 LIBS='-L/usr/local/netcdf/lib'
70 elif test -d /usr/local/include/netcdf.inc ; then
71 INCLUDES='-I/usr/local/include'
72 LIBS='-L/usr/local/lib'
73 fi

  ViewVC Help
Powered by ViewVC 1.1.22