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

Diff of /MITgcm/tools/build_options/linux_amd64_sunf90

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

revision 1.1 by ce107, Wed Jan 31 21:43:34 2007 UTC revision 1.2 by ce107, Fri Mar 19 04:00:27 2010 UTC
# Line 4  Line 4 
4  FC=f77  FC=f77
5  F90C=f90  F90C=f90
6  CC=cc  CC=cc
7    LINK=${F90C}
8    FC_NAMEMANGLE="#define FC_NAMEMANGLE(X) X ## _"
9  DEFINES='-DWORDLENGTH=4'  DEFINES='-DWORDLENGTH=4'
10  CPP='cpp  -traditional -P'  CPP='cpp  -traditional -P'
11  NOOPTFLAGS='-O0 -g -m64 -Kpic -xfilebyteorder=big16:%all -u -r8const'  NOOPTFLAGS='-O0 -g -m64 -Kpic -xfilebyteorder=big16:%all -u -r8const'
12  NOOPTFILES=''  NOOPTFILES=''
13    EXTENDED_SRC_FLAG='-e'
14    OMPFLAG='-xopenmp'
15    
16  if test "x$DEVEL" != x ; then  if test "x$DEVEL" != x ; then
17      FFLAGS='-xfilebyteorder=big16:%all -u -r8const -g -xs -C -xcommonchk -xcheck=init_local -fpover'      FFLAGS='-xfilebyteorder=big16:%all -u -r8const -g -xs -C -xcommonchk -xcheck=init_local -fpover'
# Line 18  fi Line 22  fi
22  if test "x$IEEE" = x ; then  if test "x$IEEE" = x ; then
23      #  No need for IEEE-754      #  No need for IEEE-754
24      FOPTIM='-fast -m64 -xvector=simd -xpad=local -Kpic'      FOPTIM='-fast -m64 -xvector=simd -xpad=local -Kpic'
25      LIBS="$LIBS -lmopt -lsunmath"      LIBS="$LIBS -lmopt"
26  else  else
27      #  Try to follow IEEE-754      #  Try to follow IEEE-754
28  #    FOPTIM='-O0 -m64 -Kpic'  #    FOPTIM='-O0 -m64 -Kpic'
# Line 26  else Line 30  else
30  fi  fi
31  F90FLAGS=$FFLAGS  F90FLAGS=$FFLAGS
32  F90OPTIM=$FOPTIM  F90OPTIM=$FOPTIM
33  CFLAGS='-O3 -m64 -KPIC'  CFLAGS='-O3 -m64 -Kpic'
34    
35  if [ "x$NETCDF_ROOT" != x ] ; then  if [ "x$NETCDF_ROOT" != x ] ; then
36      INCLUDEDIR="${NETCDF_ROOT}/include"      INCLUDEDIR="${NETCDF_ROOT}/include"
# Line 60  elif test -d /usr/local/netcdf ; then Line 64  elif test -d /usr/local/netcdf ; then
64      LIBS='-L/usr/local/netcdf/lib'      LIBS='-L/usr/local/netcdf/lib'
65  elif test -d /usr/local/include/netcdf.inc ; then  elif test -d /usr/local/include/netcdf.inc ; then
66      INCLUDES='-I/usr/local/include'      INCLUDES='-I/usr/local/include'
67      LIBS='-L/usr/local/lib64'      LIBS='-L/usr/local/lib64 -L/usr/local/lib'
68  fi  fi
69    

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.22