all: kdm.exe playkdm.exe

playkdm.exe : playkdm.obj kdmeng.obj cache1d.obj k.obj
	wlink f playkdm f kdmeng f cache1d f k system dos4g
kdm.exe : kdm.obj kdmeng.obj cache1d.obj k.obj
	wlink f kdm f kdmeng f cache1d f k system dos4g

playkdm.obj : playkdm.c makefile.
	wcc386 playkdm /4r /s /or /w=0
kdmeng.obj : kdmeng.c kdm.h makefile.
	wcc386 kdmeng /4r /s /or /d2 /w=0
kdm.obj : kdm.c kdm.h makefile.
	wcc386 kdm /4r /s /or /d2 /w=0
cache1d.obj : cache1d.c makefile.
	wcc386 cache1d /4r /s /or /w=0
k.obj : k.asm makefile.
	wasm k.asm
