Makefile 375 B

1234567891011121314151617181920212223242526
  1. as=nasm
  2. flags=-fbin
  3. all: check clean install
  4. check:
  5. @command -v $(as)>/dev/null 2>&1 || { \
  6. echo "Missing $(as)!"; \
  7. exit 1; \
  8. }
  9. clean:
  10. rm -rf nyanix
  11. install:
  12. $(as) $(asflags) -o nyanix src/mbr.asm
  13. install-debug:
  14. $(as) $(asflags) -dDEBUG -o nyanix src/mbr.asm
  15. qemu:
  16. dd if=test_kernel/test >> nyanix
  17. qemu-system-x86_64 -serial stdio -d guest_errors nyanix