summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPikalaxALT <pikalaxalt@gmail.com>2020-05-30 20:45:35 -0400
committerPikalaxALT <pikalaxalt@gmail.com>2020-05-30 20:45:35 -0400
commitfb0e6a02ee019d53d9b96ffafa1c89457874e91c (patch)
tree9b69d3e32aebe8cfff1b70e3002df0e4b027b325
parent46ba23a2f59233cd5062381d089f1c161c8b8142 (diff)
Add rule for symbols.csv
-rw-r--r--Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 718dac26..523a0936 100644
--- a/Makefile
+++ b/Makefile
@@ -300,6 +300,9 @@ DUMMY != mkdir -p $(ALL_DIRS)
$(BUILD_DIR)/pokediamond_bnr.bin: pokediamond.bsf graphics/icon.4bpp graphics/icon.gbapal
$(MAKEBANNER) $< $@
+symbols.csv: arm9 arm7
+ (echo "Name,Location"; grep -P " *[0-9A-F]{8} [0-9A-F]{8} \S+ +\w+\t\(\w+\.o\)" arm9/build/arm9.elf.xMAP arm7/build/arm7.elf.xMAP | sed -r 's/ *([0-9A-F]{8}) [0-9A-F]{8} \S+ +(\w+)\t\(\w+\.o\)/\2,\1/g' | cut -d: -f2) > $@
+
### Debug Print ###
print-% : ; $(info $* is a $(flavor $*) variable set to [$($*)]) @true