#copt = /5r /fp5 /7 /fpi87 /oneatx /d2 /fpi
#aopt = /ml /m5 /zd
#lopt = debug all
#compress = @%null
copt = /5r /fp5 /7 /fpi87 /oneatx /fpi
aopt = /ml /m5
lopt =
compress = c:\pmodew\pmwlite /sc:\pmodew\pmodew.exe /c4


all: .symbolic mxmplay.exe xm2mxm.exe asmexam.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.cpp makefile
  *wcl386 xm2mxm
  $(compress) xm2mxm.exe

asmexam.exe: asmexam.obj mxmplay.obj makefile
  tasm /ml /m5 asmexam
  *wlink system dos4g file { asmexam.obj mxmplay.obj }
  $(compress) asmexam.exe

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

.asm.obj:
  tasm $(aopt) $<
