dos_compilers/Manx Aztec C86 v52a/code/m.sh
2024-07-04 08:57:00 -07:00

11 lines
300 B
Bash

str=$(tr '[a-z]' '[A-Z]' <<< $1)
rm $str.O 2>/dev/null
rm $str.EXE 2>/dev/null
ntvdm -u -r:.. -e:include=c:\\include,path=c:\\bin ..\\bin\\cc -DAZTEC86 +F +A $str.c
rm ctmp* 2>/dev/null
ntvdm -u -r:.. -e:lib=c:\\lib ..\\bin\\ln $str c:\\lib\\libs\\m.lib c:\\lib\\libs\\c.lib
rm $str.O 2>/dev/null