Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
lightning-speed authored Sep 3, 2021
1 parent d160d3b commit 656a353
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions build.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
mkdir bin
nasm -f elf32 src\kernel_loader.asm -o kernel_loader.o
gcc -m32 -c -I src\. src\kernel.c -o kernel.o
cd bin
gcc -m32 -c -I ..\src\. ..\src\Drivers\*.c
nasm -f elf32 ..\src\Drivers\interrupt.asm -o .\inter.o
gcc -m32 -c -I ..\src\. ..\src\System\*.c
gcc -m32 -c -I ..\src\. ..\src\Graphics\*.c
gcc -m32 -c -I ..\src\. ..\src\Timer\*.c
gcc -m32 -c -I ..\src\. ..\src\FS\*.c
gcc -m32 -c -I ..\src\. ..\src\App32\*.c
gcc -m32 -c -I ..\src\. ..\src\Shell\*.c
gcc -m32 -c -I ..\src\. ..\src\Mego-Runtime\*.c
gcc -m32 -c -I ..\src\. ..\src\Terminal-Runtime\*.c
gcc -m32 -c -I ..\src\. ..\src\Util\*.c
ld ..\kernel_loader.o ..\kernel.o *.o -o kernel.e
del *.o
del ..\*.o
objcopy -Felf32-i386 kernel.e kernel.bin
del *.e
qemu-system-x86_64.exe -kernel kernel.bin
cd ..
del bin
pause

0 comments on commit 656a353

Please sign in to comment.