mirror of
https://github.com/zeldaret/tp
synced 2026-06-03 02:29:59 -04:00
bc428f7f65
* 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 <>
74 lines
2.3 KiB
Makefile
74 lines
2.3 KiB
Makefile
#
|
|
# Generated By: dol2asm
|
|
#
|
|
|
|
LIBOS_A_CPP_FILES := \
|
|
libs/dolphin/os/OS.cpp \
|
|
libs/dolphin/os/OSAlarm.cpp \
|
|
libs/dolphin/os/OSAlloc.cpp \
|
|
libs/dolphin/os/OSArena.cpp \
|
|
libs/dolphin/os/OSAudioSystem.cpp \
|
|
libs/dolphin/os/OSCache.cpp \
|
|
libs/dolphin/os/OSContext.cpp \
|
|
libs/dolphin/os/OSError.cpp \
|
|
libs/dolphin/os/OSExec.cpp \
|
|
libs/dolphin/os/OSFont.cpp \
|
|
libs/dolphin/os/OSInterrupt.cpp \
|
|
libs/dolphin/os/OSLink.cpp \
|
|
libs/dolphin/os/OSMessage.cpp \
|
|
libs/dolphin/os/OSMemory.cpp \
|
|
libs/dolphin/os/OSMutex.cpp \
|
|
libs/dolphin/os/OSReboot.cpp \
|
|
libs/dolphin/os/OSReset.cpp \
|
|
libs/dolphin/os/OSResetSW.cpp \
|
|
libs/dolphin/os/OSRtc.cpp \
|
|
libs/dolphin/os/OSSync.cpp \
|
|
libs/dolphin/os/OSThread.cpp \
|
|
libs/dolphin/os/OSTime.cpp \
|
|
libs/dolphin/os/__ppc_eabi_init.cpp \
|
|
|
|
LIBOS_A_O_FILES := \
|
|
$(BUILD_DIR)/libs/dolphin/os/OS.o \
|
|
$(BUILD_DIR)/libs/dolphin/os/OSAlarm.o \
|
|
$(BUILD_DIR)/libs/dolphin/os/OSAlloc.o \
|
|
$(BUILD_DIR)/libs/dolphin/os/OSArena.o \
|
|
$(BUILD_DIR)/libs/dolphin/os/OSAudioSystem.o \
|
|
$(BUILD_DIR)/libs/dolphin/os/OSCache.o \
|
|
$(BUILD_DIR)/libs/dolphin/os/OSContext.o \
|
|
$(BUILD_DIR)/libs/dolphin/os/OSError.o \
|
|
$(BUILD_DIR)/libs/dolphin/os/OSExec.o \
|
|
$(BUILD_DIR)/libs/dolphin/os/OSFont.o \
|
|
$(BUILD_DIR)/libs/dolphin/os/OSInterrupt.o \
|
|
$(BUILD_DIR)/libs/dolphin/os/OSLink.o \
|
|
$(BUILD_DIR)/libs/dolphin/os/OSMessage.o \
|
|
$(BUILD_DIR)/libs/dolphin/os/OSMemory.o \
|
|
$(BUILD_DIR)/libs/dolphin/os/OSMutex.o \
|
|
$(BUILD_DIR)/libs/dolphin/os/OSReboot.o \
|
|
$(BUILD_DIR)/libs/dolphin/os/OSReset.o \
|
|
$(BUILD_DIR)/libs/dolphin/os/OSResetSW.o \
|
|
$(BUILD_DIR)/libs/dolphin/os/OSRtc.o \
|
|
$(BUILD_DIR)/libs/dolphin/os/OSSync.o \
|
|
$(BUILD_DIR)/libs/dolphin/os/OSThread.o \
|
|
$(BUILD_DIR)/libs/dolphin/os/OSTime.o \
|
|
$(BUILD_DIR)/libs/dolphin/os/__ppc_eabi_init.o \
|
|
|
|
LIBOS_A_CFLAGS := \
|
|
|
|
LIBOS_A_LDFLAGS := \
|
|
-nodefaults \
|
|
-fp hard \
|
|
-proc gekko \
|
|
-linkmode moreram \
|
|
|
|
$(BUILD_DIR)/libos.a: $(LIBOS_A_O_FILES)
|
|
@echo linking... $(BUILD_DIR)/libos.a
|
|
@echo $(LIBOS_A_O_FILES) > build/LIBOS_A_ofiles
|
|
@$(LD) -xm l $(LIBOS_A_LDFLAGS) -o $(BUILD_DIR)/libos.a @build/LIBOS_A_ofiles
|
|
|
|
$(BUILD_DIR)/libs/dolphin/os/%.o: libs/dolphin/os/%.cpp
|
|
@mkdir -p $(@D)
|
|
@echo building... $<
|
|
@$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp
|
|
@$(CC) $(CFLAGS) $(LIBOS_A_CFLAGS) -c -o $@ $(basename $@).cpp
|
|
|