#
# Build file for creating the Miscellaneous TINY  model objects
#
AS   = /Mx				### make file ASSEMBLER permenant switches
CS   = /c /Ox /Zp1			### make file COMPILER permenant switches
AO   =	   /DMODELSIZE=0 /DBUILD_NONE=1 ### make file ASSEMBLER command line switches
CO   =	   /AT				### make file COMPILER command line switches
INC  = ..\..\INC
GINC = ..\..\..\INC
LBO  =
LIB  = ..\..\INC

DEFAULT: $(LIB)\mvtlib.lib $(LIB)\mvhtlib.lib

tfmemcpy.obj: fmemcpy.asm $(GINC)\model.inc $(INC)\common.inc $(GINC)\masm.inc
    masm $(AS) $(AO) fmemcpy,tfmemcpy;

tgethw.obj: gethw.asm $(GINC)\model.inc $(GINC)\masm.inc
    masm $(AS) $(AO) gethw,tgethw;

thisto.obj: histo.asm $(GINC)\model.inc $(GINC)\masm.inc
    masm $(AS) $(AO) histo,thisto;

tmvout.obj: mvout.asm $(GINC)\model.inc $(GINC)\masm.inc
    masm $(AS) $(AO) mvout,tmvout;

tinithw.obj: inithw.c $(INC)\mixers.h $(INC)\binary.h $(INC)\common.h
    cl $(CS) $(CO) /Fotinithw inithw.c

tmvstate.obj: mvstate.asm $(GINC)\model.inc $(GINC)\masm.inc
    masm $(AS) $(AO) mvstate,tmvstate;

tselfilt.obj: selfilt.c $(INC)\pcmio.h $(INC)\common.h
    cl $(CS) $(CO) /Fotselfilt selfilt.c

$(LIB)\mvtlib.lib: thisto.obj tselfilt.obj tinithw.obj
    lib $(LBO) $(LIB)\mvtlib -+thisto.obj -+tselfilt.obj -+tinithw.obj ,,$(LIB)\mvtlib;

$(LIB)\mvhtlib.lib: tfmemcpy.obj tgethw.obj tmvstate.obj tmvout.obj
    lib $(LBO) $(LIB)\mvhtlib -+tfmemcpy.obj -+tgethw.obj -+tmvstate.obj -+tmvout.obj ,,$(LIB)\mvhtlib;

