summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlejandro Asenjo Nitti <96613413+sonicdcer@users.noreply.github.com>2023-11-28 15:26:18 -0300
committerGitHub <noreply@github.com>2023-11-28 15:26:18 -0300
commit57aa26f0b807a41b14dcbeea41759ee2aed75cd1 (patch)
treea31f9ad6130b8984493a45f66762944ed0d5ebb9
parentbe46258c0ce9e322136a1cf4a118224063231852 (diff)
make disasm (#34)
* make disasm * update * phony
-rw-r--r--Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 4174270c..54a07d10 100644
--- a/Makefile
+++ b/Makefile
@@ -285,6 +285,13 @@ context:
@echo "Generating ctx.c ..."
@$(PYTHON) ./tools/m2ctx.py $(filter-out $@, $(MAKECMDGOALS))
+disasm:
+ @$(RM) -r asm/$(VERSION) bin/$(VERSION)
+ @echo "Unifying yamls..."
+ @$(CAT) yamls/$(VERSION)/header.yaml yamls/$(VERSION)/makerom.yaml yamls/$(VERSION)/main.yaml yamls/$(VERSION)/overlays.yaml > $(SPLAT_YAML)
+ @echo "Extracting..."
+ @$(SPLAT) $(SPLAT_YAML) --disassemble-all
+
#### Various Recipes ####
# Final ROM
@@ -338,4 +345,4 @@ build/src/libultra/libc/ll.o: src/libultra/libc/ll.c
# Print target for debugging
print-% : ; $(info $* is a $(flavor $*) variable set to [$($*)]) @true
-.PHONY: all uncompressed compressed clean init extract expected format checkformat decompress context
+.PHONY: all uncompressed compressed clean init extract expected format checkformat decompress context disasm