36 lines
565 B
Makefile
36 lines
565 B
Makefile
NASM = nasm
|
|
PYTHON = python3
|
|
|
|
.SUFFIXES:
|
|
.SUFFIXES: .bin .asm .ansi
|
|
|
|
all: ponydos.img
|
|
|
|
FS_FILES = wallpaper.bin shell.bin
|
|
|
|
ponydos.img: ponydos.bin $(FS_FILES)
|
|
$(PYTHON) assemble_floppy.py $@ ponydos.bin $(FS_FILES)
|
|
|
|
ponydos.bin: ponydos.inc
|
|
|
|
shell.bin: ponydos.inc
|
|
|
|
.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
|
|
|
|
size: ponydos.asm
|
|
@$(NASM) -fbin -d SIZE -o /dev/stdout ponydos.asm | wc -c
|
|
|
|
.PHONY: all run clean distclean size
|