# ---------------------------------------------------------------
# Makefile to generate keyb program file and associated files
#----------------------------------------------------------------
# v0.01 2001/06/25 RQ first version
# v0.1  2001/08/16 ASM: remix with AF's version
# v1.91 2003/01/14 ASM: remake to prototype 1 of KEYB 2.0
#----------------------------------------------------------------
# necessary compiler programs plus shortcuts

TPC=F:\TP\BIN\TPC.EXE
TASM=F:\BORLANDC\BIN\TASM.EXE
BINOBJ=F:\TP\BIN\BINOBJ.EXE
TPPATCH=F:\TP\TPPATCH.EXE

COMPILE=$(TPC) /$G+
ASM=$(TASM)
PACK=F:\TP\UPX --8086
PATCH=$(TPPATCH)

#----------------------------------------------------------------
# Build all the keyb program files

all: keyb.exe

#----------------------------------------------------------------
# Clean all the previous stuff and rebuild all

build: clean all

clean:
     @echo Removing existing binaries...
     @if exist *.exe del *.exe
     @if exist *.obj del *.obj
     @if exist *.tpu del *.tpu


#----------------------------------------------------------------
# and here are finally the rules to build the programs

keyb.exe: keyb.pas inter2.tpu keybhlp.obj dosints.tpu
        @echo Compiling keyb program...
        $(COMPILE) keyb.pas
        $(PACK) keyb.exe

