echo "* Compiling Linux Port (SVGALIB)"
cd drivers/vgalinux
if [ -r all ]; then
  rm all
fi
if [ ! -r at ]; then
  ln -s ../native/at
  ln -s ../native/blit
  ln -s ../native/clip
  ln -s ../native/cr
  ln -s ../native/emit
  ln -s ../native/rect
  ln -s ../native/vgadata
fi
cd ../..
echo "  :: Creating Dictionary for Linux + SVGALIB Drivers"
  (cd drivers/vgalinux ; find -name \* ! -name \*~ -printf '%%include "drivers/vgalinux/%P"\n') >drivers/all
  mv drivers/all drivers/vgalinux
echo "  :: Compiling Linux + SVGALIB Kernel"
  nasm -felf retro.asm -Dplatform.vgalinux  -llistings/vgalinux.lst
  gcc retro.o -lvga -s -oimages/rf-vga
  chmod u+s images/rf-vga
