Newer
Older
#!/bin/sh
set -x # for debugging
if [ $# -ne 1 ]
then # affiche l'usage
echo "Missing parameter"
echo "Use: $0 debug for debug"
echo "Use: $0 opt for optimization result"
exit 1
fi
#NUM_REC="$dir/num_rec"
#INSTALL="/usr/bin/install"
TRACY="tracy"
cd "$dir/$TRACY"
rm -rf autom4te.cache
rm -rf aclocal.m4
make distclean
./bootstrap
if [ $1 == "debug" ]
then
F77=gfortran ./configure --prefix=$dir/$TRACY/tracy FFLAGS="-g -O2 -Wall -fbounds-check" CFLAGS="-g -O2 -Wall -fno-implicit-templates" CXXFLAGS="-g -O2 -Wall -fno-implicit-templates"
fi
if [ $1 == "opt" ]
then
F77=gfortran ./configure --prefix=$dir/$TRACY/tracy FFLAGS="-O2 -Wall -fbounds-check" CFLAGS="-O2 -Wall -fno-implicit-templates" CXXFLAGS="-O2 -Wall -fno-implicit-templates"
fi