##
## Makefile for cpIce VxD (GNU Make)
##
## You will have to change the paths to use this.
##

target  = cpIce.vxd
objects = cpIce.obj
temps   = cpIce.lib cpIce.exp

.PHONY: all clean

all: $(target)

$(target): $(objects)
	echo /nologo /release /opt:ref /opt:nowin98 >lnk.cmd
	echo /vxd /def:cpIce.def $^ >>lnk.cmd
	echo /ignore:4039 /ignore:4078 >>lnk.cmd
	link @lnk.cmd
	$(RM) lnk.cmd

%.obj : %.asm
	ml /nologo /c /coff /Cx /DMASM6 /DBLD_COFF /DIS_32 /DWIN40COMPAT /Ie:\98ddk\inc\win98 /Fo$@ $<

clean:
	$(RM) $(target) $(objects) $(temps)
