--- MITgcm/tools/build_options/sunos_sun4u_f77 2003/11/13 22:03:39 1.2 +++ MITgcm/tools/build_options/sunos_sun4u_f77 2004/12/16 08:30:11 1.3 @@ -1,18 +1,38 @@ #!/bin/bash # -# $Header: /home/ubuntu/mnt/e9_copy/MITgcm/tools/build_options/sunos_sun4u_f77,v 1.2 2003/11/13 22:03:39 edhill Exp $ +# $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' -MAKEDEPEND=makedepend DEFINES='-DWORDLENGTH=4' - AWK='gawk' -MAKE='gmake' MAKEDEPEND='$(TOOLSDIR)/xmakedepend' -FC='f77' +MAKE='gmake' CPP='/usr/ccs/lib/cpp -P' -FFLAGS='-stackvar -explicitpar -vpara -e -u -noautopar -xtypemap=real:64,double:64,integer:32 -fsimple=0' -FOPTIM='-dalign -O3 -xarch=v9' -CFLAGS='-dalign -O3 -xarch=v9' -NOOPTFLAGS='-dalign -O0 -xarch=v9' +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'