linux build

This commit is contained in:
David Lee 2024-07-04 11:11:27 -07:00
parent bcd7146fcf
commit 006eb23980
47 changed files with 17 additions and 2 deletions

View File

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

15
Microsoft C v3/m.sh Normal file
View File

@ -0,0 +1,15 @@
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:. cl /Ox /DDOSTIME /AS /Gs /Ze /Zp -I inc -I inc\\sys -L lib $str.c
ntvdm -u -r:. link $str,,$str,lib\\slibfp+lib\\slibc+lib\\em
rm $str.COD 2>/dev/null
rm $str.MAP 2>/dev/null
rm $str.OBJ 2>/dev/null
ntvdm -d -c -p $str