#!/bin/bash

CA_DIR=`pwd`/../
CA_COM="BKTurbo8"
CA_B2O="BKbin2obj"
CA_BTL="BKTools"

ASSEMBLER=$CA_DIR$CA_COM
BIN2OBJ=$CA_DIR$CA_B2O
TOOLS=$CA_DIR$CA_BTL

$ASSEMBLER -lxon -oxon cl XONIX.ASM
$ASSEMBLER -l cl FX.ASM
$BIN2OBJ -sbin -lFONT FIGURE.FNT
$BIN2OBJ -sbin -lOOOD VOICE.BIN
$BIN2OBJ -sbin -lMARKX MARKX.PCK

$ASSEMBLER -l li XONIX XON.OBJ FIGURE.OBJ VOICE.OBJ FX.OBJ MARKX.OBJ

mkdir out
cp XONIX.bin out/
cp *.lst out/

rm XONIX.bin
rm *.obj
rm *.lst
