#!/bin/bash # # $Header: /home/ubuntu/mnt/e9_copy/MITgcm/tools/build_options/linux_ia32_g77,v 1.14 2005/01/31 16:27:13 edhill Exp $ # $Name: $ # FC=g77 CC=gcc DEFINES='-D_BYTESWAPIO -DWORDLENGTH=4' CPP='cpp -traditional -P' NOOPTFLAGS='-O0' if test "x$IEEE" = x ; then # No need for IEEE-754 FFLAGS='-Wimplicit -Wunused -Wuninitialized' FOPTIM='-O3 -malign-double -funroll-loops' else # Try to follow IEEE-754 has_sse2=f grep flags /proc/cpuinfo | grep sse2 > /dev/null 2>&1 && has_sse2=t if test "x$has_sse2" = xt ; then FFLAGS='-Wimplicit -Wunused -ffloat-store -mfpmath=sse -msse -msse2' else FFLAGS='-Wimplicit -Wunused -ffloat-store -mfpmath=sse -msse' fi echo 'FFLAGS="'$FFLAGS'"' FOPTIM='-O0 -malign-double' fi if test -d /usr/include/netcdf-3 ; then INCLUDES='-I/usr/include/netcdf-3' LIBS='-L/usr/lib/netcdf-3' elif test -d /usr/include/netcdf ; then INCLUDES='-I/usr/include/netcdf' fi