Files
tp/libs/JSystem/JKernel/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

78 lines
2.9 KiB
Makefile

#
# Generated By: dol2asm
#
LIBJKERNEL_A_CPP_FILES := \
libs/JSystem/JKernel/JKRHeap.cpp \
libs/JSystem/JKernel/JKRExpHeap.cpp \
libs/JSystem/JKernel/JKRSolidHeap.cpp \
libs/JSystem/JKernel/JKRAssertHeap.cpp \
libs/JSystem/JKernel/JKRDisposer.cpp \
libs/JSystem/JKernel/JKRThread.cpp \
libs/JSystem/JKernel/JKRAram.cpp \
libs/JSystem/JKernel/JKRAramHeap.cpp \
libs/JSystem/JKernel/JKRAramBlock.cpp \
libs/JSystem/JKernel/JKRAramPiece.cpp \
libs/JSystem/JKernel/JKRAramStream.cpp \
libs/JSystem/JKernel/JKRFileLoader.cpp \
libs/JSystem/JKernel/JKRFileFinder.cpp \
libs/JSystem/JKernel/JKRFileCache.cpp \
libs/JSystem/JKernel/JKRArchivePub.cpp \
libs/JSystem/JKernel/JKRArchivePri.cpp \
libs/JSystem/JKernel/JKRMemArchive.cpp \
libs/JSystem/JKernel/JKRAramArchive.cpp \
libs/JSystem/JKernel/JKRDvdArchive.cpp \
libs/JSystem/JKernel/JKRCompArchive.cpp \
libs/JSystem/JKernel/JKRFile.cpp \
libs/JSystem/JKernel/JKRDvdFile.cpp \
libs/JSystem/JKernel/JKRDvdRipper.cpp \
libs/JSystem/JKernel/JKRDvdAramRipper.cpp \
libs/JSystem/JKernel/JKRDecomp.cpp \
LIBJKERNEL_A_O_FILES := \
$(BUILD_DIR)/libs/JSystem/JKernel/JKRHeap.o \
$(BUILD_DIR)/libs/JSystem/JKernel/JKRExpHeap.o \
$(BUILD_DIR)/libs/JSystem/JKernel/JKRSolidHeap.o \
$(BUILD_DIR)/libs/JSystem/JKernel/JKRAssertHeap.o \
$(BUILD_DIR)/libs/JSystem/JKernel/JKRDisposer.o \
$(BUILD_DIR)/libs/JSystem/JKernel/JKRThread.o \
$(BUILD_DIR)/libs/JSystem/JKernel/JKRAram.o \
$(BUILD_DIR)/libs/JSystem/JKernel/JKRAramHeap.o \
$(BUILD_DIR)/libs/JSystem/JKernel/JKRAramBlock.o \
$(BUILD_DIR)/libs/JSystem/JKernel/JKRAramPiece.o \
$(BUILD_DIR)/libs/JSystem/JKernel/JKRAramStream.o \
$(BUILD_DIR)/libs/JSystem/JKernel/JKRFileLoader.o \
$(BUILD_DIR)/libs/JSystem/JKernel/JKRFileFinder.o \
$(BUILD_DIR)/libs/JSystem/JKernel/JKRFileCache.o \
$(BUILD_DIR)/libs/JSystem/JKernel/JKRArchivePub.o \
$(BUILD_DIR)/libs/JSystem/JKernel/JKRArchivePri.o \
$(BUILD_DIR)/libs/JSystem/JKernel/JKRMemArchive.o \
$(BUILD_DIR)/libs/JSystem/JKernel/JKRAramArchive.o \
$(BUILD_DIR)/libs/JSystem/JKernel/JKRDvdArchive.o \
$(BUILD_DIR)/libs/JSystem/JKernel/JKRCompArchive.o \
$(BUILD_DIR)/libs/JSystem/JKernel/JKRFile.o \
$(BUILD_DIR)/libs/JSystem/JKernel/JKRDvdFile.o \
$(BUILD_DIR)/libs/JSystem/JKernel/JKRDvdRipper.o \
$(BUILD_DIR)/libs/JSystem/JKernel/JKRDvdAramRipper.o \
$(BUILD_DIR)/libs/JSystem/JKernel/JKRDecomp.o \
LIBJKERNEL_A_CFLAGS := \
LIBJKERNEL_A_LDFLAGS := \
-nodefaults \
-fp hard \
-proc gekko \
-linkmode moreram \
$(BUILD_DIR)/libJKernel.a: $(LIBJKERNEL_A_O_FILES)
@echo linking... $(BUILD_DIR)/libJKernel.a
@echo $(LIBJKERNEL_A_O_FILES) > build/LIBJKERNEL_A_ofiles
@$(LD) -xm l $(LIBJKERNEL_A_LDFLAGS) -o $(BUILD_DIR)/libJKernel.a @build/LIBJKERNEL_A_ofiles
$(BUILD_DIR)/libs/JSystem/JKernel/%.o: libs/JSystem/JKernel/%.cpp
@mkdir -p $(@D)
@echo building... $<
@$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp
@$(CC) $(CFLAGS) $(LIBJKERNEL_A_CFLAGS) -c -o $@ $(basename $@).cpp