1
0
Fork 0
mirror of https://gitlab.com/bztsrc/bootboot.git synced 2023-02-13 20:54:32 -05:00
bztsrc--bootboot/x86_64-bios/Makefile

16 lines
555 B
Makefile
Raw Normal View History

2018-06-05 14:34:03 -04:00
all:
@# NOTE: GNU assembler cannot mix 16 bit real mode with 32 bit prot mode instructions
@# as easily as I need it in a boot loader. So I decided to use fasm.
@echo " src x86_64-bios (MultiBoot / BIOS)"
2020-06-24 10:33:08 -04:00
@fasm boot.asm ../dist/boot.bin >/dev/null
@fasm bootboot.asm ../dist/bootboot.bin >/dev/null
2018-06-05 14:34:03 -04:00
2020-06-24 10:33:08 -04:00
mkboot: ../dist/boot.bin mkboot.c
2018-06-05 14:34:03 -04:00
@echo " src mkboot"
2020-06-24 10:33:08 -04:00
@ld -r -b binary -o boot.o ../dist/boot.bin
2018-06-05 14:34:03 -04:00
@gcc boot.o mkboot.c -o mkboot
@rm boot.o 2>/dev/null || true
clean:
@rm *.o ../mbr.bin ../bootboot.bin mkboot >/dev/null 2>/dev/null || true