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

Annotation of /MITgcm/tools/build_options/linux_ia32_pathf90

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


Revision 1.1 - (hide annotations) (download)
Wed Jan 31 21:43:35 2007 UTC (17 years, 2 months ago) by ce107
Branch: MAIN
CVS Tags: checkpoint58w_post, checkpoint60, checkpoint61, checkpoint58x_post, checkpoint59q, checkpoint59p, checkpoint59r, checkpoint59e, checkpoint59d, checkpoint59g, checkpoint59f, checkpoint59a, checkpoint59c, checkpoint59b, checkpoint59m, checkpoint59l, checkpoint59o, checkpoint59n, checkpoint59i, checkpoint59h, checkpoint59k, checkpoint59j, checkpoint59, checkpoint58y_post, checkpoint58v_post, checkpoint61f, checkpoint61g, checkpoint61d, checkpoint61e, checkpoint61b, checkpoint61c, checkpoint61a, checkpoint61n, checkpoint61o, checkpoint61l, checkpoint61m, checkpoint61j, checkpoint61k, checkpoint61h, checkpoint61i, checkpoint61p, checkpoint61q
New optfiles for new genmake2

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

  ViewVC Help
Powered by ViewVC 1.1.22