#
# Makefile for the checks on the FAT
#

compiler = tcc -c 

options = -w -d -O -Z -ml

libman = tlib

includepath = ..\engine\header;..\misc

all: chkboot.lib
        @echo BOOT checks compiled

chkboot.lib: fsstring.obj descifat.obj descchk.obj  
       @..\..\bin\delete chkboot.lib
       @$(libman) chkboot.lib + fsstring.obj
       @$(libman) chkboot.lib + descifat.obj
       @$(libman) chkboot.lib + descchk.obj
       @..\..\bin\delete chkboot.bak

fsstring.obj: fsstring.c
       @$(compiler) $(options) -I$(includepath) fsstring.c

descifat.obj: descifat.c
       @$(compiler) $(options) -I$(includepath) descifat.c

descchk.obj: descchk.c
       @$(compiler) $(options) -I$(includepath) descchk.c

clean:
        @..\..\bin\delete fsstring.obj
        @..\..\bin\delete descifat.obj
        @..\..\bin\delete descchk.obj
        @..\..\bin\delete chkboot.lib
