Makefile 555 B

12345678910111213141516
  1. all:
  2. @# NOTE: GNU assembler cannot mix 16 bit real mode with 32 bit prot mode instructions
  3. @# as easily as I need it in a boot loader. So I decided to use fasm.
  4. @echo " src x86_64-bios (MultiBoot / BIOS)"
  5. @fasm boot.asm ../dist/boot.bin >/dev/null
  6. @fasm bootboot.asm ../dist/bootboot.bin >/dev/null
  7. mkboot: ../dist/boot.bin mkboot.c
  8. @echo " src mkboot"
  9. @ld -r -b binary -o boot.o ../dist/boot.bin
  10. @gcc boot.o mkboot.c -o mkboot
  11. @rm boot.o 2>/dev/null || true
  12. clean:
  13. @rm *.o ../mbr.bin ../bootboot.bin mkboot >/dev/null 2>/dev/null || true