.SUFFIXES: .sys
.SUFFIXES: .exe

all: ahead.sys tseng.sys test.exe

.asm.obj:
	masm /mx /ml $(@:.obj=.asm)

.obj.exe: 
	link /nologo $*;

.exe.sys: 
	exe2bin $*.exe $*.sys

ahead.exe: ahead.obj
tseng.exe: tseng.obj

ahead.obj: acopy.asm
tseng.obj: acopy.asm


install: ahead.sys
	copy ahead.sys c:\lib\x11\ahead.sys

test.exe: test.c
	cl /AS /c test.c
	link test, test ;

clean:
	-del *.obj
	-del *.def
	-del *.map
	-del *.bak
	
cleanall: clean
	-del *.exe		
	-del *.sys