rem create Turbo C libraries

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

tasm xspawn.asm /mx /dLCODE /dLDATA

rem change -ml to the appropriate memory model

tcc -ml -O -Z -N -w -c 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 xspawntl.lib
tlib xspawntl.lib +xspawnl+xspawnle+xspawnlp+xspwnlpe+xspawnv+xspawnve+xspawnvp+xspwnvpe+xsystem+xspawn
