#
# This make file creates the "Socha Libraries".  To change the memory model,
# change the defintion below of MEM_MODEL to one of the valid memory models.
# Please note that you will need MASM 6 or higher to build CLIB.LIB.  TASM 
# cannot be used to build the library without a rewrite of some code segmants.
#

MEM_MODEL = LARGE

#
# The two lines below define how to build an obj file from an asm file.
# I've used the /D switch to define MEM_MODEL, which is used in the .MODEL
# statement to define the memory model to build.  And /Zi includes the
# debugger information in the file.
#
.asm.obj:
	ml /DMEM_MODEL=$(MEM_MODEL) /c /Zi $<
	lib clib -+$*;

#
# This line causes all the files to be assembled and added to the library.
#
clib.lib:       hardware.obj mouse.obj fastwrit.obj cursor.obj kbd_io.obj

