#!/bin/bash
#
#
# Build options for Suse SLES-8.1 Opteron
# tested on (Linux ln0127en 2.4.21-143-numa #1 SMP Fri Oct 31 00:17:52 UTC 2003 x86_64 unknown) system 20041512
#

FC=mpif77
CC=mpicc
LINK=mpif77

DEFINES='-DWORDLENGTH=4 -DNML_EXTENDED_F77'
CPP='cpp  -traditional -P'
EXTENDED_SRC_FLAG='-Mextend'
GET_FC_VERSION="-V"

MAKEDEPEND=/usr/X11R6/bin/makedepend
INCLUDES=-I/opt/mpich-gm/include

NOOPTFLAGS='-O0'

if test "x$IEEE" = x ; then
    #  No need for IEEE-754
    FFLAGS="$FFLAGS -byteswapio -Mnodclchk -Ktrap=fp"
    FOPTIM='-tp k8-64 -pc=64 -fastsse -O3 -Msmart -Mvect=cachesize:1048576,transform'
else
    #  Try to follow IEEE-754
    FFLAGS="$FFLAGS -byteswapio -Ktrap=fp"
    FOPTIM='-tp k8-64 -pc=64 -fastsse -O0 -Msmart -Kieee -Mvect=cachesize:1048576,transform'
fi
#- might want to use '-r8' for fizhi pkg:
#FFLAGS="$FFLAGS -r8"

