# ----------------------------------------------------------------
echo "* Building Native Kernel (x86)"
echo "  :: Removing old wordlists"
if [ -r forth/code ]; then
  rm forth/code drivers/native/all
fi
echo "  :: Creating Dictionary for Native Drivers"
  mv drivers/native/font drivers
  (cd drivers/native ; find -name \* ! -name \*~ ! -name all -printf '%%include "drivers/native/%P"\n') >drivers/all
  mv drivers/all drivers/native
  mv drivers/font drivers/native
echo "  :: Compiling the kernel and boot sector"
  nasm retro.asm -oretro -Dplatform.native -Dvesa
  nasm loaders/dos/dos.asm -oimages/retro.com -DVESA
  nasm loaders/floppy/fat12.asm -oimages/fat12
# ----------------------------------------------------------------
