Pass 3 _wip: Slalom (U), Kung Fu (U), Othello (U) semantic naming complete Pass 3 _wip: apply symbols (0 residue) for Slalom (U), Kung Fu (U), Othello (U) Pass 2/3 _wip: 10 NROM projects (Elevator Action, 1942, Tag Team Wrestling, Galaga, Kung Fu a1, Stack-Up, Magmax, Ms Pac-Man Namco, Soccer, Sqoon) Promote 13 _wip/NROM projects to NROM/ (Slalom, Kung Fu, Othello, Elevator Action, 1942, Tag Team Wrestling, Galaga, Kung Fu a1, Stack-Up, Magmax, Ms Pac-Man Namco, Soccer, Sqoon) Pass 2/3 _wip: 5 CNROM games (Tiger-Heli, Paperboy, Last Starfighter, Mighty Bomb Jack, Kung-Fu Heroes) Docs: document CDL capture + re-trace workflow in TODO.md Adds more code for - Elevator Action (U) - Kung Fu (U) - Othello (U) - Slalom (U) - Sqoon (U)
26 lines
588 B
Makefile
26 lines
588 B
Makefile
CA65 ?= ca65
|
|
LD65 ?= ld65
|
|
|
|
all: reconstructed.nes verify
|
|
|
|
prg.o: prg.s symbols.inc locals.inc prg.bin
|
|
$(CA65) -g -o $@ $<
|
|
|
|
header.o: header.s header.bin
|
|
$(CA65) -g -o $@ $<
|
|
|
|
chr.o: chr.s chr.bin
|
|
$(CA65) -g -o $@ $<
|
|
|
|
reconstructed.nes: header.o prg.o chr.o linker.cfg
|
|
$(LD65) -C linker.cfg -m reconstructed.map -Ln reconstructed.lbl -o $@ header.o prg.o chr.o
|
|
|
|
verify: reconstructed.nes rom.nes
|
|
cmp reconstructed.nes rom.nes
|
|
@echo "Byte-identical ROM verified."
|
|
|
|
clean:
|
|
rm -f *.o reconstructed.nes reconstructed_prg.bin reconstructed.map reconstructed.lbl
|
|
|
|
.PHONY: all verify clean
|