#!/bin/bash
#
#
# tested without NetCDF support on
# SunOS model.awi-bremerhaven.de 5.9 Generic_112233-11 sun4u sparc SUNW,Sun-Fire-15000
# SunOS tphs14.awi-bremerhaven.de 5.8 Generic_117350-08 sun4u sparc SUNW,Sun-Blade-1000
# with g77 version 2.95.3 20010315 (release) (from FSF-g77 version 0.5.25 20010315 (release))

FC_NAMEMANGLE="#define FC_NAMEMANGLE(X) X ## _"
DEFINES='-DWORDLENGTH=4 -DNML_EXTENDED_F77'
AWK='gawk'
MAKEDEPEND='$(TOOLSDIR)/cyrus-imapd-makedepend/makedepend'
#MAKEDEPEND='$(TOOLSDIR)/xmakedepend'
#MAKE='gmake'
CPP='/usr/ccs/lib/cpp -P'
# this one works, too
#CPP='/opt/sfw/bin/cpp -traditional -P'

FC=g77
CC=gcc
EXTENDED_SRC_FLAG='-ffixed-line-length-132'
GET_FC_VERSION="--version"

# 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

