dos_compilers/Microsoft C v6ax/CODE/m.sh

12 lines
311 B
Bash
Raw Normal View History

2024-07-17 01:27:27 +02:00
str=$(tr '[a-z]' '[A-Z]' <<< $1)
rm $str.OBJ 2>/dev/null
rm $str.MAP 2>/dev/null
rm $str.EXE 2>/dev/null
ntvdm -u -c -r:.. -e:path=c:\\bin\;c:\\binb,include=c:\\include,lib=c:\\lib ../BIN/CL.EXE /nologo /B1 C1L /B2 C2L /Owx /Fe$str.EXE $str.C
ntvdm -c -p $str
rm $str.OBJ 2>/dev/null
rm $str.MAP 2>/dev/null