#!/bin/sh
# Petter Reinholdtsen, UWA 2000

# currently unused.  
subdirs="games graph impro mini motor multitask psd serial sound walker"

topdir=`pwd`
hexdir=$topdir/HEX

test -d $hexdir || mkdir $hexdir

for dir in *; do
  if test -d $topdir/$dir; then
    echo "Compiling $dir"
    cd $topdir/$dir
    for file in *.c; do
      if test -f $file; then
        gcc68 $file
      fi
    done
    mv *.hex $hexdir
  fi
done

cd $topdir
