Skip to content

Latest commit

 

History

History
30 lines (20 loc) · 995 Bytes

File metadata and controls

30 lines (20 loc) · 995 Bytes

Mega Drive / Genesis build for Xevious.

Orchestrates asset conversion + assembly/link via the Python helpers.

(The heavy lifting lives in build_md.py so the same logic is usable directly.

The ROM version/filename is defined by VERSION in build_md.py.)

PY = py

.PHONY: all rom assets clean run

all: rom

assets: src/megadrive/graphics_md.68k src/megadrive/sounds_md.68k src/megadrive/tab_vol.bin

src/megadrive/graphics_md.68k: assets/amiga/xevious_gfx.c assets/megadrive/convert_graphics_md.py $(PY) assets/megadrive/convert_graphics_md.py

src/megadrive/sounds_md.68k: assets/megadrive/convert_sounds_md.py $(PY) assets/megadrive/convert_sounds_md.py

src/megadrive/tab_vol.bin: tools/extract_tabvol.py $(PY) tools/extract_tabvol.py

rom: assets $(PY) build_md.py

clean: $(PY) -c "import shutil,os; shutil.rmtree('obj/md',ignore_errors=True)"

run: rom $(PY) -c "import build_md,subprocess; subprocess.Popen(['C:/Games/Sega - Mega Drive/Blastem/blastem.exe', build_md.ROM])"