#!
#
# This script will build and install each piece of the
# compiler archive.  Note that the m3core and libm3 libraries
# must already be installed.
#

TARGET = DS3100

cd quake
  if [ ! -d $TARGET ] mkdir $TARGET
  cd $TARGET
  make -f ../src/makefile CC=cc TARGET=$TARGET  || exit 1
  cd ..
  make ship || exit 1
cd ../..

cd m3build
  build $TARGET || exit 1
  m3ship        || exit 1
cd ..

cd m3middle
  m3build || exit 1
  m3ship  || exit 1
cd ..

cd m3linker
  m3build || exit 1
  m3ship  || exit 1
cd ..

cd m3front
  m3build || exit 1
  m3ship  || exit 1
cd ..

cd m3
  m3build || exit 1
  m3ship  || exit 1
cd ..


