Makefile 486 B

1234567891011121314151617181920212223242526272829
  1. as=nasm
  2. aflags=-fbin -Wall -O0
  3. all: clean install
  4. clean:
  5. rm -rf bin/bios
  6. install:
  7. $(as) $(asflags) -o bin/bios src/reset.asm
  8. test:
  9. qemu-system-x86_64 -serial stdio -bios bin/bios \
  10. -hda test_disk
  11. test-tty:
  12. qemu-system-x86_64 -nographic -serial mon:stdio \
  13. -bios bin/bios -hda test_disk &
  14. logtest:
  15. qemu-system-x86_64 -d in_asm -bios bin/bios \
  16. -hda /dev/null | \
  17. tee qemu_run_log.txt
  18. test-end:
  19. kill -9 `ps aux | grep qemu | grep -v grep | awk '{print $$2}'`