CustomBootloader/Makefile
2022-02-27 20:03:19 +01:00

7 lines
204 B
Makefile

all:
as -o boot.o boot.s
gcc -nostdinc -nostdlib -ffreestanding -c main.c -o theObjectCode.o
ld -o boot.bin -Ttext 0x0 --oformat binary -e init boot.o theObjectCode.o
run:
qemu-system-x86_64 boot.bin