X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=Makefile;h=26a0553ff3e7e03584c6356b1a895956ed8ecd1f;hb=4b180cdedc3fea317fa69356014e136c3984acb9;hp=014f1cad2d35c4e6db0b6a2c6c3ba34e1be7cffe;hpb=b8755ce740a1c9a75d44c9f5ac694b04defe15cd;p=bootcard diff --git a/Makefile b/Makefile index 014f1ca..26a0553 100644 --- 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