#
# Makefile for files in this directory.
#

compiler = tcc -c
options  = -O -d -Z -w

libman = tlib

all: main.lib
        @echo Main routines compiled.

main.lib: defrag.obj chkargs.obj checkos.obj
        @..\..\..\..\bin\delete main.lib
        @$(libman) main.lib + defrag.obj
        @$(libman) main.lib + chkargs.obj
        @$(libman) main.lib + checkos.obj
        @..\..\..\..\bin\delete main.bak

defrag.obj: defrag.c ..\..\modlgate\modlgate.h ..\..\misc\version.h \
            ..\..\misc\misc.h chkargs.h
        @$(compiler) $(options) defrag.c 

chkargs.obj: chkargs.c ..\..\modlgate\defrpars.h ..\..\misc\bool.h \
             chkargs.h
        @$(compiler) $(options) chkargs.c 

checkos.obj: checkos.c ..\..\environ\os_id.h ..\..\environ\dpmitst.h \
             checkos.h
        @$(compiler) $(options) checkos.c 

clean:
        @..\..\..\..\bin\delete chkargs.obj
        @..\..\..\..\bin\delete defrag.obj
        @..\..\..\..\bin\delete checkos.obj
        @..\..\..\..\bin\delete main.lib
