projects
/
bootcard
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
readme
[bootcard]
/
Makefile
1
bin = bootcard.img
2
3
QEMU_FLAGS = -soundhw pcspk
4
5
$(bin): bootcard.asm
6
nasm -f bin -o $@ $<
7
8
.PHONY: clean
9
clean:
10
rm -f $(bin)
11
12
.PHONY: run
13
run: $(bin)
14
qemu-system-i386 -hda $< $(QEMU_FLAGS)
15
16
.PHONY: debug
17
debug: $(bin)
18
qemu-system-i386 -S -s -hda $< $(QEMU_FLAGS)
19
20
.PHONY: disasm
21
disasm: $(bin)
22
ndisasm -o 0x7c00 $< >dis
23
24
.PHONY: qr
25
qr: bootcard.asm
26
qrencode -o qr.png -r bootcard.asm
27
28
.PHONY: install
29
install: $(bin)
30
dd if=$(bin) of=/dev/sdd bs=512