for dir in PVM3 MPI CM5 SP PGON SHM CRAY PVM3.px CS X ScaLAPACK
  do
    echo "clean up in directory $dir"
    (cd $dir; make realclean)
  done
