Files
tp/libs/dolphin/gx/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

56 lines
1.6 KiB
Makefile

#
# Generated By: dol2asm
#
LIBGX_A_CPP_FILES := \
libs/dolphin/gx/GXInit.cpp \
libs/dolphin/gx/GXFifo.cpp \
libs/dolphin/gx/GXAttr.cpp \
libs/dolphin/gx/GXMisc.cpp \
libs/dolphin/gx/GXGeometry.cpp \
libs/dolphin/gx/GXFrameBuf.cpp \
libs/dolphin/gx/GXLight.cpp \
libs/dolphin/gx/GXTexture.cpp \
libs/dolphin/gx/GXBump.cpp \
libs/dolphin/gx/GXTev.cpp \
libs/dolphin/gx/GXPixel.cpp \
libs/dolphin/gx/GXDisplayList.cpp \
libs/dolphin/gx/GXTransform.cpp \
libs/dolphin/gx/GXPerf.cpp \
LIBGX_A_O_FILES := \
$(BUILD_DIR)/libs/dolphin/gx/GXInit.o \
$(BUILD_DIR)/libs/dolphin/gx/GXFifo.o \
$(BUILD_DIR)/libs/dolphin/gx/GXAttr.o \
$(BUILD_DIR)/libs/dolphin/gx/GXMisc.o \
$(BUILD_DIR)/libs/dolphin/gx/GXGeometry.o \
$(BUILD_DIR)/libs/dolphin/gx/GXFrameBuf.o \
$(BUILD_DIR)/libs/dolphin/gx/GXLight.o \
$(BUILD_DIR)/libs/dolphin/gx/GXTexture.o \
$(BUILD_DIR)/libs/dolphin/gx/GXBump.o \
$(BUILD_DIR)/libs/dolphin/gx/GXTev.o \
$(BUILD_DIR)/libs/dolphin/gx/GXPixel.o \
$(BUILD_DIR)/libs/dolphin/gx/GXDisplayList.o \
$(BUILD_DIR)/libs/dolphin/gx/GXTransform.o \
$(BUILD_DIR)/libs/dolphin/gx/GXPerf.o \
LIBGX_A_CFLAGS := \
LIBGX_A_LDFLAGS := \
-nodefaults \
-fp hard \
-proc gekko \
-linkmode moreram \
$(BUILD_DIR)/libgx.a: $(LIBGX_A_O_FILES)
@echo linking... $(BUILD_DIR)/libgx.a
@echo $(LIBGX_A_O_FILES) > build/LIBGX_A_ofiles
@$(LD) -xm l $(LIBGX_A_LDFLAGS) -o $(BUILD_DIR)/libgx.a @build/LIBGX_A_ofiles
$(BUILD_DIR)/libs/dolphin/gx/%.o: libs/dolphin/gx/%.cpp
@mkdir -p $(@D)
@echo building... $<
@$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp
@$(CC) $(CFLAGS) $(LIBGX_A_CFLAGS) -c -o $@ $(basename $@).cpp