Files
tp/libs/JSystem/J3DGraphLoader/Makefile
T
Jonathan Wase bc428f7f65 Clean up and improvements to tools (#163)
* moved elf2dol

* removed postprocess.py

* removed vtables.py

* find_unused_asm.py

* removed section2cpp.py

* removed splitter/*

* fixed symbol names due to iconv file rename

* fixed problem building RELs caused by #160

* improved performance of a few python tools

* added new tool for finding conflict when not OK

* added ./tp setup

* don't install dol2asm dependecies with requirements.txt

* format and check for imports

* remove unused tools/difftools.py

* fixed ignore to include elf2dol

* fix compiler patcher

* ok-check now creates the patched compiler at mwcceppc_patched.exe

* Add new command to copy the build folder to the expected folder

* 'make clean' will now only clean main.dol stuff. (added clean_rels and clean_all)

* './tp pull-request' and './tp check' now doesn't include RELs by default. Use '--rels' to include them in the process.

* './tp remove-unused-asm --check' added, exitcode 0==no files, 1==exists files

Co-authored-by: Julgodis <>
2021-12-02 23:38:37 +01:00

44 lines
1.7 KiB
Makefile

#
# Generated By: dol2asm
#
LIBJ3DGRAPHLOADER_A_CPP_FILES := \
libs/JSystem/J3DGraphLoader/J3DMaterialFactory.cpp \
libs/JSystem/J3DGraphLoader/J3DMaterialFactory_v21.cpp \
libs/JSystem/J3DGraphLoader/J3DClusterLoader.cpp \
libs/JSystem/J3DGraphLoader/J3DModelLoader.cpp \
libs/JSystem/J3DGraphLoader/J3DModelLoaderCalcSize.cpp \
libs/JSystem/J3DGraphLoader/J3DJointFactory.cpp \
libs/JSystem/J3DGraphLoader/J3DShapeFactory.cpp \
libs/JSystem/J3DGraphLoader/J3DAnmLoader.cpp \
LIBJ3DGRAPHLOADER_A_O_FILES := \
$(BUILD_DIR)/libs/JSystem/J3DGraphLoader/J3DMaterialFactory.o \
$(BUILD_DIR)/libs/JSystem/J3DGraphLoader/J3DMaterialFactory_v21.o \
$(BUILD_DIR)/libs/JSystem/J3DGraphLoader/J3DClusterLoader.o \
$(BUILD_DIR)/libs/JSystem/J3DGraphLoader/J3DModelLoader.o \
$(BUILD_DIR)/libs/JSystem/J3DGraphLoader/J3DModelLoaderCalcSize.o \
$(BUILD_DIR)/libs/JSystem/J3DGraphLoader/J3DJointFactory.o \
$(BUILD_DIR)/libs/JSystem/J3DGraphLoader/J3DShapeFactory.o \
$(BUILD_DIR)/libs/JSystem/J3DGraphLoader/J3DAnmLoader.o \
LIBJ3DGRAPHLOADER_A_CFLAGS := \
LIBJ3DGRAPHLOADER_A_LDFLAGS := \
-nodefaults \
-fp hard \
-proc gekko \
-linkmode moreram \
$(BUILD_DIR)/libJ3DGraphLoader.a: $(LIBJ3DGRAPHLOADER_A_O_FILES)
@echo linking... $(BUILD_DIR)/libJ3DGraphLoader.a
@echo $(LIBJ3DGRAPHLOADER_A_O_FILES) > build/LIBJ3DGRAPHLOADER_A_ofiles
@$(LD) -xm l $(LIBJ3DGRAPHLOADER_A_LDFLAGS) -o $(BUILD_DIR)/libJ3DGraphLoader.a @build/LIBJ3DGRAPHLOADER_A_ofiles
$(BUILD_DIR)/libs/JSystem/J3DGraphLoader/%.o: libs/JSystem/J3DGraphLoader/%.cpp
@mkdir -p $(@D)
@echo building... $<
@$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp
@$(CC) $(CFLAGS) $(LIBJ3DGRAPHLOADER_A_CFLAGS) -c -o $@ $(basename $@).cpp