forked from offtopia/ponydos
29 lines
425 B
Makefile
29 lines
425 B
Makefile
NASM = nasm
|
|
PYTHON = python3
|
|
|
|
.SUFFIXES:
|
|
.SUFFIXES: .bin .asm .ansi
|
|
|
|
all: ponydos.img
|
|
|
|
FS_FILES = bg.bin shell.bin
|
|
|
|
ponydos.img: ponydos.bin $(FS_FILES)
|
|
$(PYTHON) assemble_floppy.py $@ ponydos.bin $(FS_FILES)
|
|
|
|
.asm.bin:
|
|
$(NASM) -fbin -o $@ $<
|
|
|
|
.ansi.bin:
|
|
$(PYTHON) process_wallpaper.py $< $@ 7 0 0 0
|
|
|
|
run: ponydos.img
|
|
qemu-system-i386 -fda $<
|
|
|
|
clean:
|
|
rm -f *.bin *.img
|
|
|
|
distclean: clean
|
|
|
|
.PHONY: all run clean distclean
|