mirror of
https://github.com/HarbourMasters/Starship
synced 2026-08-06 10:02:42 -04:00
Add decompress rule
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user