mkos32/scripts/compile.sh

5 lines
367 B
Bash
Raw Normal View History

2024-04-17 10:47:47 +00:00
#!/bin/bash
../../Kompilator/cross/bin/i686-elf-as ../source/boot.s -o ../build/boot.o
../../Kompilator/cross/bin/i686-elf-gcc -c ../source/kernel.c -o ../build/kernel.o -std=gnu99 -ffreestanding -O2 -Wall -Wextra
../../Kompilator/cross/bin/i686-elf-gcc -T ../source/linker.ld -o ../build/mkos.bin -ffreestanding -O2 -nostdlib ../build/boot.o ../build/kernel.o -lgcc