Makefile: Use variable for qemu

This way users can specify which backend to use without having to change
the Makefile itself.
This commit is contained in:
Wolfgang Müller 2023-03-27 17:07:52 +02:00
parent 2ca9f413ab
commit 2e78130f67
2 changed files with 4 additions and 1 deletions

View File

@ -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

View File

@ -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?