dos_compilers/Microsoft c v3/m.bat
2024-07-01 05:49:38 -07:00

18 lines
389 B
Batchfile

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