mirror of
https://github.com/zeldaret/tp
synced 2026-05-29 08:43:05 -04:00
462d71cbef
* Makefile: Fix issues with iconv causing it to break under devkitPro / msys The version of iconv included in devkitPro does not have a -o option, so replace it with normal shell redirection. Also, SHIFT-JIS does not have a mapping for ~, so output the Windows CP932 variant instead, which does. See: https://en.wikipedia.org/wiki/Tilde#Unicode_and_Shift_JIS_encoding_of_wave_dash https://en.wikipedia.org/wiki/Code_page_932_(Microsoft_Windows)#Single-byte_character_differences * Update diff configuration -Bbinary doesn't seem to work with my copy of bjdump (it says it can't decode unknown architecture) Cheese things by using expected/ instead of having the user place things manually. * JUTNameTab * J3DPacket / J3DDrawBuffer * format Co-authored-by: lepelog <lepelog@users.noreply.github.com>
56 lines
2.1 KiB
Makefile
56 lines
2.1 KiB
Makefile
#
|
|
# Generated By: dol2asm
|
|
#
|
|
|
|
LIBJSTUDIO_A_CPP_FILES := \
|
|
libs/JSystem/JStudio/JStudio/ctb.cpp \
|
|
libs/JSystem/JStudio/JStudio/ctb-data.cpp \
|
|
libs/JSystem/JStudio/JStudio/functionvalue.cpp \
|
|
libs/JSystem/JStudio/JStudio/fvb.cpp \
|
|
libs/JSystem/JStudio/JStudio/fvb-data.cpp \
|
|
libs/JSystem/JStudio/JStudio/fvb-data-parse.cpp \
|
|
libs/JSystem/JStudio/JStudio/jstudio-control.cpp \
|
|
libs/JSystem/JStudio/JStudio/jstudio-data.cpp \
|
|
libs/JSystem/JStudio/JStudio/jstudio-math.cpp \
|
|
libs/JSystem/JStudio/JStudio/jstudio-object.cpp \
|
|
libs/JSystem/JStudio/JStudio/object-id.cpp \
|
|
libs/JSystem/JStudio/JStudio/stb.cpp \
|
|
libs/JSystem/JStudio/JStudio/stb-data-parse.cpp \
|
|
libs/JSystem/JStudio/JStudio/stb-data.cpp \
|
|
|
|
LIBJSTUDIO_A_O_FILES := \
|
|
$(BUILD_DIR)/libs/JSystem/JStudio/JStudio/ctb.o \
|
|
$(BUILD_DIR)/libs/JSystem/JStudio/JStudio/ctb-data.o \
|
|
$(BUILD_DIR)/libs/JSystem/JStudio/JStudio/functionvalue.o \
|
|
$(BUILD_DIR)/libs/JSystem/JStudio/JStudio/fvb.o \
|
|
$(BUILD_DIR)/libs/JSystem/JStudio/JStudio/fvb-data.o \
|
|
$(BUILD_DIR)/libs/JSystem/JStudio/JStudio/fvb-data-parse.o \
|
|
$(BUILD_DIR)/libs/JSystem/JStudio/JStudio/jstudio-control.o \
|
|
$(BUILD_DIR)/libs/JSystem/JStudio/JStudio/jstudio-data.o \
|
|
$(BUILD_DIR)/libs/JSystem/JStudio/JStudio/jstudio-math.o \
|
|
$(BUILD_DIR)/libs/JSystem/JStudio/JStudio/jstudio-object.o \
|
|
$(BUILD_DIR)/libs/JSystem/JStudio/JStudio/object-id.o \
|
|
$(BUILD_DIR)/libs/JSystem/JStudio/JStudio/stb.o \
|
|
$(BUILD_DIR)/libs/JSystem/JStudio/JStudio/stb-data-parse.o \
|
|
$(BUILD_DIR)/libs/JSystem/JStudio/JStudio/stb-data.o \
|
|
|
|
LIBJSTUDIO_A_CFLAGS := \
|
|
|
|
LIBJSTUDIO_A_LDFLAGS := \
|
|
-nodefaults \
|
|
-fp hard \
|
|
-proc gekko \
|
|
-linkmode moreram \
|
|
|
|
$(BUILD_DIR)/libJStudio.a: $(LIBJSTUDIO_A_O_FILES)
|
|
@echo linking... $(BUILD_DIR)/libJStudio.a
|
|
@echo $(LIBJSTUDIO_A_O_FILES) > build/LIBJSTUDIO_A_ofiles
|
|
@$(LD) -xm l $(LIBJSTUDIO_A_LDFLAGS) -o $(BUILD_DIR)/libJStudio.a @build/LIBJSTUDIO_A_ofiles
|
|
|
|
$(BUILD_DIR)/libs/JSystem/JStudio/JStudio/%.o: libs/JSystem/JStudio/JStudio/%.cpp
|
|
@mkdir -p $(@D)
|
|
@echo building... $<
|
|
@iconv -f UTF-8 -t CP932 < $< > $@.iconv.cpp
|
|
@$(CC) $(CFLAGS) $(LIBJSTUDIO_A_CFLAGS) -c -o $@ $@.iconv.cpp
|
|
|