#!/bin/bash # # $Header: /home/ubuntu/mnt/e9_copy/MITgcm/tools/build_options/sunos_sun4u_g77,v 1.4 2004/12/16 08:49:10 mlosch Exp $ # $Name: $ # # tested without NetCDF support on # SunOS model 5.9 Generic_112233-11 sun4u sparc SUNW,Sun-Fire-15000 # with g77 version 2.95.3 20010315 (release) (from FSF-g77 version 0.5.25 20010315 (release)) DEFINES='-DWORDLENGTH=4' AWK='gawk' MAKEDEPEND='$(TOOLSDIR)/xmakedepend' MAKE='gmake' CPP='/usr/ccs/lib/cpp -P' FC=g77 # 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. # For g77, it is probably necessary to use libraries # that have been compiled with g77 as well. INCLUDES='-I/usr/local/include' LIBS='-L/usr/local/lib -lnetcdf' NOOPTFLAGS='-O0' # For IEEE, use the "-ffloat-store" option if test "x$IEEE" = x ; then FFLAGS='-Wimplicit -Wunused -Wuninitialized' FOPTIM='-O3 -funroll-loops' else FFLAGS='-Wimplicit -Wunused -ffloat-store' FOPTIM='-O0' fi