forked from offtopia/ponydos
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:
parent
eabd5be84b
commit
33b6d646bf
2 changed files with 4 additions and 1 deletions
3
Makefile
3
Makefile
|
@ -1,5 +1,6 @@
|
||||||
NASM = nasm
|
NASM = nasm
|
||||||
PYTHON = python3
|
PYTHON = python3
|
||||||
|
QEMU = qemu-system-i386
|
||||||
|
|
||||||
.SUFFIXES:
|
.SUFFIXES:
|
||||||
.SUFFIXES: .bin .asm .ans .wall
|
.SUFFIXES: .bin .asm .ans .wall
|
||||||
|
@ -31,7 +32,7 @@ memory.bin: ponydos.inc
|
||||||
$(PYTHON) process_wallpaper.py $@ $< 7 0 0 0
|
$(PYTHON) process_wallpaper.py $@ $< 7 0 0 0
|
||||||
|
|
||||||
run: ponydos.img
|
run: ponydos.img
|
||||||
qemu-system-i386 -drive file=$<,index=0,if=floppy,format=raw
|
$(QEMU) -drive file=$<,index=0,if=floppy,format=raw
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f *.bin *.img *.wall ponydos.inc
|
rm -f *.bin *.img *.wall ponydos.inc
|
||||||
|
|
|
@ -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`,
|
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.
|
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?
|
### How do I contribute?
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue