From 57aa26f0b807a41b14dcbeea41759ee2aed75cd1 Mon Sep 17 00:00:00 2001 From: Alejandro Asenjo Nitti <96613413+sonicdcer@users.noreply.github.com> Date: Tue, 28 Nov 2023 15:26:18 -0300 Subject: [PATCH] make disasm (#34) * make disasm * update * phony --- Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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