get objects from splat.yaml instead of build ld script

This commit is contained in:
Alex Bates 2021-01-09 16:32:44 +00:00
parent c627e4ee24
commit 02f83a0299
3 changed files with 7 additions and 4 deletions

View File

@ -119,6 +119,9 @@ GENERATED_HEADERS := include/ld_addrs.h $(foreach dir, $(NPC_DIRS), include/$(di
### Targets ###
clean:
rm -rf $(BUILD_DIR)
clean-all:
rm -rf $(BUILD_DIR) bin msg img sprite .splat_cache $(LD_SCRIPT)
clean-code:
@ -127,7 +130,8 @@ clean-code:
tools:
make -C tools
setup: clean submodules tools $(LD_SCRIPT)
setup: clean-all submodules tools
@make split
# tools/star-rod submodule intentionally omitted
submodules:
@ -266,7 +270,6 @@ include/sprite/npc/%.h: sprite/npc/%/SpriteSheet.xml tools/gen_sprite_animations
$(LD_SCRIPT): $(SPLAT_YAML)
$(SPLAT) --modes ld bin Yay0 PaperMarioMapFS PaperMarioMessages img PaperMarioNpcSprites --new
make $(GENERATED_HEADERS)
$(BUILD_DIR)/$(LD_SCRIPT): $(LD_SCRIPT)
@mkdir -p $(shell dirname $@)

View File

@ -1,4 +1,4 @@
OBJECTS = $(subst BUILD_DIR, $(BUILD_DIR), $(shell grep -E 'BUILD_DIR.+\.o' papermario.ld -o))
OBJECTS := $(foreach OBJECT, $(shell $(PYTHON) tools/n64splat/list_objects.py $(SPLAT_YAML)), $(BUILD_DIR)/$(OBJECT))
DSL_C_FILES := $(shell grep -lrF "SCRIPT" src)

@ -1 +1 @@
Subproject commit 27b29d50eeefe3a812037ee8b96a221011c3fd4e
Subproject commit bbadaa3cadf20d46390740644e6f84abf583d4be