2022-02-11 16:16:49 +00:00
|
|
|
NASM = nasm
|
2023-03-11 15:49:55 +00:00
|
|
|
PYTHON = python3
|
2022-02-11 16:16:49 +00:00
|
|
|
|
|
|
|
.SUFFIXES:
|
2023-03-11 15:49:55 +00:00
|
|
|
.SUFFIXES: .bin .asm .ansi
|
2022-02-11 16:16:49 +00:00
|
|
|
|
2023-03-11 15:49:55 +00:00
|
|
|
all: ponydos.img
|
2022-02-11 16:16:49 +00:00
|
|
|
|
2023-03-18 06:42:18 +00:00
|
|
|
FS_FILES = bg.bin shell.bin
|
2023-03-17 23:05:32 +00:00
|
|
|
|
|
|
|
ponydos.img: ponydos.bin $(FS_FILES)
|
|
|
|
$(PYTHON) assemble_floppy.py $@ ponydos.bin $(FS_FILES)
|
2022-02-11 16:16:49 +00:00
|
|
|
|
|
|
|
.asm.bin:
|
|
|
|
$(NASM) -fbin -o $@ $<
|
|
|
|
|
2023-03-11 15:49:55 +00:00
|
|
|
.ansi.bin:
|
|
|
|
$(PYTHON) process_wallpaper.py $< $@ 7 0 0 0
|
|
|
|
|
|
|
|
run: ponydos.img
|
|
|
|
qemu-system-i386 -fda $<
|
|
|
|
|
2022-02-11 16:16:49 +00:00
|
|
|
clean:
|
2023-03-11 15:49:55 +00:00
|
|
|
rm -f *.bin *.img
|
2022-02-11 16:16:49 +00:00
|
|
|
|
|
|
|
distclean: clean
|
|
|
|
|
2023-03-18 12:23:32 +00:00
|
|
|
size: ponydos.asm
|
|
|
|
@$(NASM) -fbin -d SIZE -o ponydos_size.bin ponydos.asm
|
|
|
|
@wc -c ponydos_size.bin
|
|
|
|
@rm ponydos_size.bin
|
|
|
|
|
|
|
|
.PHONY: all run clean distclean size
|