Add Makefile, gitignore.
[pyrit.git] / Makefile
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