[docs] Replace cyrillic 'с' with latin 'c' in register names
[kolibrios.git] / programs / emulator / kwine / make.bat
bloba1d9c709a7522e19b51bd28a233ef5ae1aaf3128
1 @echo off\r
2 set NASM="nasm\nasm.exe"\r
3 rem set GCC="D:\MinGW_32_bit\bin\gcc.exe"\r
4 set GCC="C:\MinGW\msys\1.0\home\autobuild\tools\win32\bin\kos32-gcc.exe"\r
5 \r
6 rem %NASM% -f coff "lib\msvcrt.dll.asm" -o "..\lib\msvcrt.dll"\r
7 rem strip --strip-debug "../lib/msvcrt.dll"\r
8 \r
9 rem %GCC% -fno-ident -nostdlib -fno-builtin -c -std=gnu99 -o ..\lib\msvcrt.dll lib\msvcrt.dll.c\r
10 %GCC% -fno-ident -fno-builtin -O0 -c -o ..\lib\msvcrt.dll lib\msvcrt.dll.c\r
12 %NASM% -f coff "lib/kernel32.dll.asm" -o "../lib/kernel32.dll"\r
13 strip --strip-debug "../lib/kernel32.dll"\r
15 %NASM% -f bin "kwine.asm" -o "../kwine"\r
17 if %errorlevel% == 0 (\r
18     echo compiled succesfully.\r
19     ubuntu1804 run "mcopy -D o -i ../kolibri.img ../lib/msvcrt.dll ::kwine/lib/msvcrt.dll"\r
20     ubuntu1804 run "mcopy -D o -i ../kolibri.img ../lib/kernel32.dll ::kwine/lib/kernel32.dll"\r
21     ubuntu1804 run "mcopy -D o -i ../kolibri.img ../kwine ::kwine/kwine"\r
23     qemu-system-x86_64 -fda ../kolibri.img -m 256\r
24 ) else (\r
25     echo compilation failed.\r
26 )\r
28 pause