#! /bin/csh -f

#	###-----------------------------------------------------------###
#	#   create the architecture if it deos not exist. Link the	#
#	# source file for each tool for that particular architecture	#
#	###-----------------------------------------------------------###

if ($#argv == 0) then
  echo -n "Linktool : Which tool ? "
  set TOOL=$<
else
  set TOOL=$1
endif

if ( -d tools/$TOOL) then
  echo ========== linking tools/$TOOL ============

  mkdir tools/$TOOL/archi/$MACHINE
  mkdir tools/$TOOL/archi/$MACHINE/obj
  mkdir tools/$TOOL/archi/$MACHINE/lib
  mkdir tools/$TOOL/archi/$MACHINE/include
  mkdir tools/$TOOL/archi/$MACHINE/bin
  Linkarchi tools/$TOOL/sce tools/$TOOL/archi/$MACHINE/obj

else
  echo "Linktool : $TOOL no such tool"
endif
