summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 86e4925..cb1cfb8 100644
--- a/Makefile
+++ b/Makefile
@@ -28,7 +28,7 @@ GFX := $(patsubst %.png, $(BUILD)/%.2bpp, \
.SECONDEXPANSION:
.PHONY: all
-all: $(ROMS) compare
+all: $(ROMS) compare coverage
.PHONY: compare
compare: $(ROMS)
@@ -56,6 +56,10 @@ $(ROMS): $(OBJS)
$(BUILD)/shim.asm: tools/make_shim.py shim.sym | $$(dir $$@)
$(PYTHON) tools/make_shim.py -w -- $(filter-out $<, $^) > $@
+.PHONY: coverage
+coverage: $(ROMS)
+ $(PYTHON) tools/disasm_coverage.py -m $(ROMS:.gb=.map) -b 0x40
+
$(BUILD)/gfx.o: | $(GFX)
$(BUILD)/%.o: $(BUILD)/%.asm | $$(dir $$@)
$(RGBASM) $(RGBASMFLAGS) -M $(@:.o=.d) $(OUTPUT_OPTION) $<