#!/bin/bash # # $Header: /home/ubuntu/mnt/e9_copy/MITgcm/tools/build_options/sunos_sun4u_f77,v 1.3 2004/12/16 08:30:11 mlosch Exp $ # $Name: $ # # tested on # SunOS model 5.9 Generic_112233-11 sun4u sparc SUNW,Sun-Fire-15000 # with f90: Forte Developer 7 Fortran 95 7.0 Patch 111714-03 2002/11/19 FC_NAMEMANGLE="#define FC_NAMEMANGLE(X) X ## _" S64='$(TOOLSDIR)/set64bitConst.sh' DEFINES='-DWORDLENGTH=4' AWK='gawk' MAKEDEPEND='$(TOOLSDIR)/xmakedepend' MAKE='gmake' CPP='/usr/ccs/lib/cpp -P' FC='f77' # This is an example of how to specify where your # netcdf libraries and include files are; # in this particular example, they are in # /usr/local/libs and /usr/local/include. INCLUDES='-I/usr/local/include' LIBS='-L/usr/local/lib' if test "x$IEEE" = x ; then # No need for IEEE-754 FFLAGS='-stackvar -explicitpar -vpara -e -u -noautopar -xtypemap=real:64,double:64,integer:32' FOPTIM='-dalign -O4 -xarch=native -fsimple=2' CFLAGS='-dalign -xO4 -xarch=native' else # Try to follow IEEE-754 FFLAGS='-e -u -xtypemap=real:64,double:64,integer:32 -fsimple=0' FFLAGS='-e -u -xtypemap=real:64,double:64,integer:32 -fsimple=0' FOPTIM='-O0' CFLAGS='-xO0' fi NOOPTFLAGS='-dalign -O0'