dos_compilers/Microsoft C v4/m.bat
2024-07-04 11:17:49 -07:00

19 lines
454 B
Batchfile

@echo off
del %1.exe
del %1.obj
rem use "ntvdm -h cl /help" to get command-line arguments
rem ntvdm cl /Ox /DDOSTIME /AS /Gc /Gs /Ze -I inc -I inc\sys -L lib %1.c
ntvdm -r:. cl /Ox /DDOSTIME /AS /Gs /Ze -I inc -I inc\sys -L lib %1.c
if %ERRORLEVEL% NEQ 0 goto alldone
rem use "ntvdm link /help" to get command-line arguments
ntvdm -r:. -e:lib=lib -h link %1,,%1,slibfp
if %ERRORLEVEL% NEQ 0 goto alldone
ntvdm -r:. -p %1
:alldone