# Script to compile application with MT-DATA
# compile : compile MTDATA programs

case $# in 
0) echo "Usage : compile <program name w/o extentions> <output executable filename>" 1>&2; exit 1
esac

# -g flag in first compilation line for debugging
# replace by -O for optimisation (no debugging possible)

g77 -g -c -w $1.f
echo " "
echo " *** Linking " $1.f
echo " "
g77 /opt/mtdata/objects/*.o  $1.o -o $2

#clean object ?
rm $1.o


