if test $# -ne 0
then
   case $1 in
      -d) debug=-DDEBUG=1
	  echo DEBUG option set
	  shift
   esac
fi
if test $# -eq 0
then
   echo compiling all sources
   cc comm?.c $debug -o comm
else
   for i
      do echo compiling comm${i}.c
	 cc -c comm${i}.c $debug
   done
   cc comm?.o -o comm
fi
