#copt = /5r /oneatmiler /s /d2
#asmc = tasm /ml /m /zd
##asmc = wasm /d2
#lopt = debug all

copt = /5r /oneatmilr /s
asmc = tasm /ml /m
#asmc = wasm
lopt =

compress = @%null
#compress = pmwlite /c4


all: .symbolic mxmplay.exe xm2mxm.exe
  @%null

mxmplay.exe: cppexam.obj mxmplay.obj makefile
  *wlink $(lopt) system dos4g name mxmplay.exe file { cppexam.obj mxmplay.obj }
  $(compress) mxmplay.exe

xm2mxm.exe: xm2mxm.obj makefile
  *wlink $(lopt) system dos4g name xm2mxm.exe file xm2mxm.obj
  $(compress) xm2mxm.exe

.cpp.obj:
  @*wpp386 $(copt) $<

.asm.obj:
  @$(asmc) $<
