Browse Source

Makefile: Use variable for qemu

This way users can specify which backend to use without having to change
the Makefile itself.
pull/1/head
Wolfgang Müller 2 months ago
parent
commit
2e78130f67
  1. 3
      Makefile
  2. 2
      README.md

3
Makefile

@ -1,5 +1,6 @@
NASM = nasm
PYTHON = python3
QEMU = qemu-system-i386
.SUFFIXES:
.SUFFIXES: .bin .asm .ans .wall
@ -31,7 +32,7 @@ memory.bin: ponydos.inc
$(PYTHON) process_wallpaper.py $@ $< 7 0 0 0
run: ponydos.img
qemu-system-i386 -drive file=$<,index=0,if=floppy,format=raw
$(QEMU) -drive file=$<,index=0,if=floppy,format=raw
clean:
rm -f *.bin *.img *.wall ponydos.inc

2
README.md

@ -16,6 +16,8 @@ No! PonyDOS uses its own 512-byte kernel, built from scratch.
To build PonyDOS from scratch, on an environment with `nasm` and `python3`,
run `make`. `make run` runs the floppy disk image `ponydos.img` with QEMU.
By default, `qemu-system-i386` is invoked. If you want to use a different
backend, use `make QEMU=<backend> run`.
### How do I contribute?

Loading…
Cancel
Save