dos_compilers/Microsoft C v4/m.sh

16 lines
357 B
Bash
Raw Normal View History

2024-07-04 20:17:49 +02:00
str=$(tr '[a-z]' '[A-Z]' <<< $1)
rm $str.COD 2>/dev/null
rm $str.MAP 2>/dev/null
rm $str.OBJ 2>/dev/null
rm $str.EXE 2>/dev/null
ntvdm -u -r:. -h cl /Ox /DDOSTIME /AS /Gs /Ze -I inc -I inc\\sys -L lib $str.c
ntvdm -u -r:. -e:lib=lib -h link $str,,$str,slibfp
rm $str.COD 2>/dev/null
rm $str.MAP 2>/dev/null
rm $str.OBJ 2>/dev/null
ntvdm -r:. -c -p $str