dos_compilers/Microsoft C v3/m.bat
2024-07-04 11:11:27 -07:00

18 lines
393 B
Batchfile

@echo off
del %1.exe
del %1.obj
rem use "ntvdm cl /help" to get command-line arguments
ntvdm -r:. cl /Ox /DDOSTIME /AS /Gs /Ze /Zp -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:. link %1,,%1,lib\slibfp+lib\slibc+lib\em
if %ERRORLEVEL% NEQ 0 goto alldone
rem ntvdm -d -C -p %1
:alldone