Add Makefile, gitignore.
authorRichard W.M. Jones <rjones@redhat.com>
Fri, 25 Oct 2019 10:42:57 +0000 (11:42 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Fri, 25 Oct 2019 17:16:47 +0000 (18:16 +0100)
.gitignore [new file with mode: 0644]
Makefile [new file with mode: 0644]

diff --git a/.gitignore b/.gitignore
new file mode 100644 (file)
index 0000000..5903843
--- /dev/null
@@ -0,0 +1,2 @@
+*~
+pyrit.img
diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..6063b86
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,15 @@
+all:   pyrit.img
+
+pyrit.img: pyrit.asm
+       nasm -f bin -o $@ $<
+
+clean:
+       rm -f *~ pyrit.img
+
+run: pyrit.img
+       qemu-system-i386 -fda $<
+
+runbochs: pyrit.img
+       bochs -q 'boot:a' 'floppya: 1_44=$<, status=inserted'
+
+.PHONY: run runbochs