Update README.
[pyrit.git] / Makefile
1 all:    pyrit.img
2
3 pyrit.img: pyrit.asm
4         nasm -f bin -o $@ $<
5
6 pyrit.data: pyrit.img
7         $(HOME)/d/nbdkit/plugins/data/disk2data.pl $< > $@
8
9 clean:
10         rm -f *~ pyrit.img
11
12 run: pyrit.img
13         qemu-system-i386 -fda $<
14
15 runbochs: pyrit.img
16         bochs -q 'boot:a' 'floppya: 1_44=$<, status=inserted'
17
18 dis: pyrit.img
19         objdump -D -b binary -m i8086 $<
20
21 debug: pyrit.img
22         qemu-system-i386 -S -s -fda $< &
23         gdb -ex "target remote tcp::1234" \
24             -ex "set architecture i8086" \
25             -ex "break *0x7c00" \
26             -ex "cont"
27
28 .PHONY: run runbochs