rem create Microsoft C 5.0 and 5.1 libraries

rem to assemble xspawn.asm define LCODE and LDATA as shown below
rem small memory model
rem medium memory model   /dLCODE
rem compact memory model           /dLDATA
rem large memory model    /dLCODE  /dLDATA

masm xspawn.asm /b63 /w2 /mx /dLCODE /dLDATA;

rem change /AL to the appropriate memory model

cl /AL /c /W3 /Oals /Zl xspawnl.c xspawnle.c xspawnlp.c xspwnlpe.c xspawnv.c xspawnve.c xspawnvp.c xspwnvpe.c xsystem.c

rem change the two occurrences of the library name to reflect the memory model

erase xspwnm5l.lib
lib xspwnm5l.lib +xspawnl+xspawnle+xspawnlp+xspwnlpe+xspawnv+xspawnve+xspawnvp+xspwnvpe+xsystem+xspawn;
