From 246092ff64dd7b229ee38b03d7279355888ef9a8 Mon Sep 17 00:00:00 2001 From: Alejandro Javier Asenjo Nitti Date: Sun, 15 Oct 2023 04:10:34 -0300 Subject: [PATCH] Add decompress rule --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile b/Makefile index ec4bc315..5b1bbf66 100644 --- a/Makefile +++ b/Makefile @@ -93,7 +93,9 @@ ASM_PROC_FLAGS := --input-enc=utf-8 --output-enc=euc-jp --convert-statics=globa SPLAT ?= tools/splat/split.py SPLAT_YAML ?= $(TARGET).$(VERSION).yaml +COMPTOOL := tools/comptool.py +PYTHON := python3 IINC := -Iinclude -Ibin/$(VERSION) -I. IINC += -Ilib/ultralib/include -Ilib/ultralib/include/PR -Ilib/ultralib/include/ido @@ -192,6 +194,7 @@ all: uncompressed init: $(MAKE) clean + $(MAKE) decompress $(MAKE) extract -j $(nproc) $(MAKE) all -j $(nproc) @@ -205,6 +208,9 @@ endif #### Main Targets ### +decompress: baserom.us.z64 + $(PYTHON) $(COMPTOOL) -d ./baserom.us.z64 ./baserom.us.uncompressed.z64 + extract: $(RM) -r asm/$(VERSION) bin/$(VERSION) $(CAT) yamls/$(VERSION)/header.yaml yamls/$(VERSION)/makerom.yaml yamls/$(VERSION)/main.yaml > $(SPLAT_YAML)