#
# Example script to link build an MTDATA "level-2" application where a 
# new MAIN program is created. In this example the new MAIN program is
# in the file whose name is supplied as argument to the script
# 
# All files are assumed to be in the current working directory
#
# compile : compile MTDATA programs

printf "\n\n\t Enter the path to mtdata object files:\t"
read object_path
case $# in 
0) printf "\n\nUsage : compile <program name w/o extentions> <output excutable filename>\n contact Ananth in Arup-307 for details\n\n " 1>&2; exit 1
esac
f77 -c -w $1.f
echo " "
echo " *** Linking " $1.f
echo " "
#f77 /home4/users/guest/mt472obj/*.o  $1.o -o $2
f77 $object_path/*.o  $1.o -o $2
rm $1.o
#

