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

Annotation of /MITgcm/tools/build_options/linux_amd64_sunf90

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


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

1 ce107 1.1 #!/bin/bash
2     #
3    
4     FC=f77
5     F90C=f90
6     CC=cc
7     DEFINES='-DWORDLENGTH=4'
8     CPP='cpp -traditional -P'
9     NOOPTFLAGS='-O0 -g -m64 -Kpic -xfilebyteorder=big16:%all -u -r8const'
10     NOOPTFILES=''
11    
12     if test "x$DEVEL" != x ; then
13     FFLAGS='-xfilebyteorder=big16:%all -u -r8const -g -xs -C -xcommonchk -xcheck=init_local -fpover'
14     else
15     FFLAGS='-xfilebyteorder=big16:%all -u -r8const'
16     fi
17    
18     if test "x$IEEE" = x ; then
19     # No need for IEEE-754
20     FOPTIM='-fast -m64 -xvector=simd -xpad=local -Kpic'
21     LIBS="$LIBS -lmopt -lsunmath"
22     else
23     # Try to follow IEEE-754
24     # FOPTIM='-O0 -m64 -Kpic'
25     FOPTIM='-fast -m64 -xpad=local -fsimple=1 -Kpic'
26     fi
27     F90FLAGS=$FFLAGS
28     F90OPTIM=$FOPTIM
29     CFLAGS='-O3 -m64 -KPIC'
30    
31     if [ "x$NETCDF_ROOT" != x ] ; then
32     INCLUDEDIR="${NETCDF_ROOT}/include"
33     INCLUDES="-I${NETCDF_ROOT}/include"
34     LIBDIR="${NETCDF_ROOT}/lib"
35     LIBS="-L${NETCDF_ROOT}/lib"
36     elif [ "x$NETCDF_HOME" != x ]; then
37     INCLUDEDIR="${NETCDF_HOME}/include"
38     INCLUDES="-I${NETCDF_HOME}/include"
39     LIBDIR="${NETCDF_HOME}/lib"
40     LIBS="-L${NETCDF_HOME}/lib"
41     elif [ "x$NETCDF_INC" != x -a "x$NETCDF_LIB" != x ]; then
42     NETCDF_INC=`echo $NETCDF_INC | sed 's/-I//g'`
43     NETCDF_LIB=`echo $NETCDF_LIB | sed 's/-L//g'`
44     INCLUDEDIR="${NETCDF_INC}"
45     INCLUDES="-I${NETCDF_INC}"
46     LIBDIR="${NETCDF_LIB}"
47     LIBS="-L${NETCDF_LIB}"
48     elif [ "x$NETCDF_INCDIR" != x -a "x$NETCDF_LIBDIR" != x ]; then
49     INCLUDEDIR="${NETCDF_INCDIR}"
50     INCLUDES="-I${NETCDF_INCDIR}"
51     LIBDIR="${NETCDF_LIBDIR}"
52     LIBS="-L${NETCDF_LIBDIR}"
53     elif test -d /usr/include/netcdf-3 ; then
54     INCLUDES='-I/usr/include/netcdf-3'
55     LIBS='-L/usr/lib/netcdf-3 -L/usr/lib64/netcdf-3'
56     elif test -d /usr/include/netcdf ; then
57     INCLUDES='-I/usr/include/netcdf'
58     elif test -d /usr/local/netcdf ; then
59     INCLUDES='-I/usr/local/netcdf/include'
60     LIBS='-L/usr/local/netcdf/lib'
61     elif test -d /usr/local/include/netcdf.inc ; then
62     INCLUDES='-I/usr/local/include'
63     LIBS='-L/usr/local/lib64'
64     fi
65    

  ViewVC Help
Powered by ViewVC 1.1.22