summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTauwasser <Tauwasser@tauwasser.eu>2018-06-01 01:39:55 +0200
committerTauwasser <Tauwasser@tauwasser.eu>2018-06-01 01:40:07 +0200
commitbd9e0d92c0a097c42d7fbb2ab90fdd02e0290088 (patch)
tree83d92f2563d375281cf87399567313f91554c18a /Makefile
parent2804ddca7e50b66ed209815476f74ff98f52f54b (diff)
Makefile: add coverage target and necessary python scripts
Signed-off-by: Tauwasser <Tauwasser@tauwasser.eu>
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) $<