summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index bf7cf66..9fd252a 100644
--- a/Makefile
+++ b/Makefile
@@ -59,6 +59,14 @@ clean:
mostlyclean:
rm -rf $(ROM) $(CORRECTEDROM) $(OBJS) $(OBJS:.o=.d) $(ROMS:.gb=.sym) $(ROMS:.gb=.map)
+.PHONY: linkerscript
+linkerscript: $(ROM:.gb=.link)
+
+%.link: %.map
+ $(PYTHON3) tools/map2link.py $< $@
+
+%.map: %.gb;
+
$(CORRECTEDROM): %-correctheader.gb: %.gb
cp $< $@
$(RGBFIX) -f hg -m 0x10 $@