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

DEFAULT: $(LIB)\mvllib.lib $(LIB)\mvhllib.lib

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

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

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

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

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

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

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

$(LIB)\mvllib.lib: lhisto.obj lselfilt.obj linithw.obj
    lib $(LBO) $(LIB)\mvllib -+lhisto.obj -+lselfilt.obj -+linithw.obj ,,$(LIB)\mvllib;

$(LIB)\mvhllib.lib: lfmemcpy.obj lgethw.obj lmvstate.obj lmvout.obj
    lib $(LBO) $(LIB)\mvhllib -+lfmemcpy.obj -+lgethw.obj -+lmvstate.obj -+lmvout.obj ,,$(LIB)\mvhllib;

