readme
[bootcard] / Makefile
index 014f1ca..26a0553 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,7 @@
 bin = bootcard.img
 
+QEMU_FLAGS = -soundhw pcspk
+
 $(bin): bootcard.asm
        nasm -f bin -o $@ $<
 
@@ -9,12 +11,20 @@ clean:
 
 .PHONY: run
 run: $(bin)
-       qemu-system-i386 -hda $<
+       qemu-system-i386 -hda $< $(QEMU_FLAGS)
 
 .PHONY: debug
 debug: $(bin)
-       qemu-system-i386 -S -s -hda $<
+       qemu-system-i386 -S -s -hda $< $(QEMU_FLAGS)
 
 .PHONY: disasm
 disasm: $(bin)
        ndisasm -o 0x7c00 $< >dis
+
+.PHONY: qr
+qr: bootcard.asm
+       qrencode -o qr.png -r bootcard.asm
+
+.PHONY: install
+install: $(bin)
+       dd if=$(bin) of=/dev/sdd bs=512