all : qlib.lib .asm.obj: masm2obj $* bccpp.obj : bccpp.cpp bcpp2obj $* wccpp.obj : wccpp.cpp wcpp2obj $* mccpp.obj : mccpp.cpp mcpp2obj $* wdisasm -a mccpp > mccpp.asm rem You must edit mccpp.asm and fix it. rem Change all ".text" to "_text" and remove the 2 last segments rem which are not needed (and all the data in them) rem Then 'exit' and the makefile will recompile it. rem Also make the _text segment 'CODE' class. command wasm2obj mccpp qlib.lib : \ lzw.obj ctype.obj alloc.obj dma.obj comp.obj spawn.obj system.obj lock.obj \ getenv.obj abort.obj int.obj io.obj int86.obj dos.obj string.obj strn.obj \ mem.obj irq.obj conio.obj print.obj errno.obj printf.obj sprint.obj \ scanf.obj phys.obj rand.obj dostime.obj date.obj win95.obj where.obj \ time.obj delay.obj sound.obj bccpp.obj wccpp.obj mccpp.obj callback.obj \ exit.obj key.obj junk.obj if exist qlib.lib del qlib.lib echo qlib +lzw +ctype +alloc +dma +comp +spawn +system +lock & > tmp.tmp echo +getenv +abort +int +io +int86 +dos +string +strn & >>tmp.tmp echo +mem +irq +conio +print +errno +printf +sprint & >>tmp.tmp echo +scanf +phys +rand +dostime +date +win95 +where & >>tmp.tmp echo +time +delay +sound +bccpp +wccpp +mccpp +callback & >>tmp.tmp echo +exit +key +junk ,nul >> tmp.tmp lib @tmp.tmp del tmp.tmp