CustomBootloader/Makefile

7 lines
204 B
Makefile
Raw Permalink Normal View History

2022-02-23 21:56:12 +00:00
all:
as -o boot.o boot.s
2022-02-27 19:03:19 +00:00
gcc -nostdinc -nostdlib -ffreestanding -c main.c -o theObjectCode.o
ld -o boot.bin -Ttext 0x0 --oformat binary -e init boot.o theObjectCode.o
2022-02-23 21:56:12 +00:00
run:
qemu-system-x86_64 boot.bin