Files
tp/libs/SSystem/SComponent/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

104 lines
4.2 KiB
Makefile

#
# Generated By: dol2asm
#
LIBSCOMPONENT_A_CPP_FILES := \
libs/SSystem/SComponent/c_malloc.cpp \
libs/SSystem/SComponent/c_API.cpp \
libs/SSystem/SComponent/c_API_controller_pad.cpp \
libs/SSystem/SComponent/c_API_graphic.cpp \
libs/SSystem/SComponent/c_cc_d.cpp \
libs/SSystem/SComponent/c_cc_s.cpp \
libs/SSystem/SComponent/c_counter.cpp \
libs/SSystem/SComponent/c_list.cpp \
libs/SSystem/SComponent/c_list_iter.cpp \
libs/SSystem/SComponent/c_node.cpp \
libs/SSystem/SComponent/c_node_iter.cpp \
libs/SSystem/SComponent/c_tree.cpp \
libs/SSystem/SComponent/c_tree_iter.cpp \
libs/SSystem/SComponent/c_phase.cpp \
libs/SSystem/SComponent/c_request.cpp \
libs/SSystem/SComponent/c_tag.cpp \
libs/SSystem/SComponent/c_tag_iter.cpp \
libs/SSystem/SComponent/c_xyz.cpp \
libs/SSystem/SComponent/c_sxyz.cpp \
libs/SSystem/SComponent/c_math.cpp \
libs/SSystem/SComponent/c_bg_s_chk.cpp \
libs/SSystem/SComponent/c_bg_s_gnd_chk.cpp \
libs/SSystem/SComponent/c_bg_s_lin_chk.cpp \
libs/SSystem/SComponent/c_bg_s_shdw_draw.cpp \
libs/SSystem/SComponent/c_bg_s_poly_info.cpp \
libs/SSystem/SComponent/c_bg_w.cpp \
libs/SSystem/SComponent/c_m2d.cpp \
libs/SSystem/SComponent/c_m3d.cpp \
libs/SSystem/SComponent/c_m3d_g_aab.cpp \
libs/SSystem/SComponent/c_m3d_g_cir.cpp \
libs/SSystem/SComponent/c_m3d_g_cps.cpp \
libs/SSystem/SComponent/c_m3d_g_cyl.cpp \
libs/SSystem/SComponent/c_m3d_g_lin.cpp \
libs/SSystem/SComponent/c_m3d_g_pla.cpp \
libs/SSystem/SComponent/c_m3d_g_sph.cpp \
libs/SSystem/SComponent/c_m3d_g_tri.cpp \
libs/SSystem/SComponent/c_lib.cpp \
libs/SSystem/SComponent/c_angle.cpp \
LIBSCOMPONENT_A_O_FILES := \
$(BUILD_DIR)/libs/SSystem/SComponent/c_malloc.o \
$(BUILD_DIR)/libs/SSystem/SComponent/c_API.o \
$(BUILD_DIR)/libs/SSystem/SComponent/c_API_controller_pad.o \
$(BUILD_DIR)/libs/SSystem/SComponent/c_API_graphic.o \
$(BUILD_DIR)/libs/SSystem/SComponent/c_cc_d.o \
$(BUILD_DIR)/libs/SSystem/SComponent/c_cc_s.o \
$(BUILD_DIR)/libs/SSystem/SComponent/c_counter.o \
$(BUILD_DIR)/libs/SSystem/SComponent/c_list.o \
$(BUILD_DIR)/libs/SSystem/SComponent/c_list_iter.o \
$(BUILD_DIR)/libs/SSystem/SComponent/c_node.o \
$(BUILD_DIR)/libs/SSystem/SComponent/c_node_iter.o \
$(BUILD_DIR)/libs/SSystem/SComponent/c_tree.o \
$(BUILD_DIR)/libs/SSystem/SComponent/c_tree_iter.o \
$(BUILD_DIR)/libs/SSystem/SComponent/c_phase.o \
$(BUILD_DIR)/libs/SSystem/SComponent/c_request.o \
$(BUILD_DIR)/libs/SSystem/SComponent/c_tag.o \
$(BUILD_DIR)/libs/SSystem/SComponent/c_tag_iter.o \
$(BUILD_DIR)/libs/SSystem/SComponent/c_xyz.o \
$(BUILD_DIR)/libs/SSystem/SComponent/c_sxyz.o \
$(BUILD_DIR)/libs/SSystem/SComponent/c_math.o \
$(BUILD_DIR)/libs/SSystem/SComponent/c_bg_s_chk.o \
$(BUILD_DIR)/libs/SSystem/SComponent/c_bg_s_gnd_chk.o \
$(BUILD_DIR)/libs/SSystem/SComponent/c_bg_s_lin_chk.o \
$(BUILD_DIR)/libs/SSystem/SComponent/c_bg_s_shdw_draw.o \
$(BUILD_DIR)/libs/SSystem/SComponent/c_bg_s_poly_info.o \
$(BUILD_DIR)/libs/SSystem/SComponent/c_bg_w.o \
$(BUILD_DIR)/libs/SSystem/SComponent/c_m2d.o \
$(BUILD_DIR)/libs/SSystem/SComponent/c_m3d.o \
$(BUILD_DIR)/libs/SSystem/SComponent/c_m3d_g_aab.o \
$(BUILD_DIR)/libs/SSystem/SComponent/c_m3d_g_cir.o \
$(BUILD_DIR)/libs/SSystem/SComponent/c_m3d_g_cps.o \
$(BUILD_DIR)/libs/SSystem/SComponent/c_m3d_g_cyl.o \
$(BUILD_DIR)/libs/SSystem/SComponent/c_m3d_g_lin.o \
$(BUILD_DIR)/libs/SSystem/SComponent/c_m3d_g_pla.o \
$(BUILD_DIR)/libs/SSystem/SComponent/c_m3d_g_sph.o \
$(BUILD_DIR)/libs/SSystem/SComponent/c_m3d_g_tri.o \
$(BUILD_DIR)/libs/SSystem/SComponent/c_lib.o \
$(BUILD_DIR)/libs/SSystem/SComponent/c_angle.o \
LIBSCOMPONENT_A_CFLAGS := \
LIBSCOMPONENT_A_LDFLAGS := \
-nodefaults \
-fp hard \
-proc gekko \
-linkmode moreram \
$(BUILD_DIR)/libSComponent.a: $(LIBSCOMPONENT_A_O_FILES)
@echo linking... $(BUILD_DIR)/libSComponent.a
@echo $(LIBSCOMPONENT_A_O_FILES) > build/LIBSCOMPONENT_A_ofiles
@$(LD) -xm l $(LIBSCOMPONENT_A_LDFLAGS) -o $(BUILD_DIR)/libSComponent.a @build/LIBSCOMPONENT_A_ofiles
$(BUILD_DIR)/libs/SSystem/SComponent/%.o: libs/SSystem/SComponent/%.cpp
@mkdir -p $(@D)
@echo building... $<
@$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp
@$(CC) $(CFLAGS) $(LIBSCOMPONENT_A_CFLAGS) -c -o $@ $(basename $@).cpp