014f1cad2d35c4e6db0b6a2c6c3ba34e1be7cffe
[bootcard] / Makefile
1 bin = bootcard.img
2
3 $(bin): bootcard.asm
4         nasm -f bin -o $@ $<
5
6 .PHONY: clean
7 clean:
8         rm -f $(bin)
9
10 .PHONY: run
11 run: $(bin)
12         qemu-system-i386 -hda $<
13
14 .PHONY: debug
15 debug: $(bin)
16         qemu-system-i386 -S -s -hda $<
17
18 .PHONY: disasm
19 disasm: $(bin)
20         ndisasm -o 0x7c00 $< >dis