From fb0e6a02ee019d53d9b96ffafa1c89457874e91c Mon Sep 17 00:00:00 2001 From: PikalaxALT Date: Sat, 30 May 2020 20:45:35 -0400 Subject: Add rule for symbols.csv --- Makefile | 3 +++ 1 file changed, 3 insertions(+) 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 -- cgit v1.2.3