mirror of
https://github.com/encounter/tp.git
synced 2026-07-11 06:18:46 -07:00
50 lines
1.1 KiB
Makefile
50 lines
1.1 KiB
Makefile
#
|
|
# Generated By: dol2asm
|
|
#
|
|
|
|
M233_TARGET := $(BUILD_DIR)/rel/d/a/e/d_a_e_st.plf
|
|
M233_LDSCRIPT := $(BUILD_DIR)/rel/d/a/e/d_a_e_st.lcf
|
|
M233_MAP := $(BUILD_DIR)/rel/d/a/e/d_a_e_st.map
|
|
|
|
M233_CPP_FILES := \
|
|
rel/executor.cpp \
|
|
rel/global_destructor_chain.cpp \
|
|
rel/d/a/e/d_a_e_st/d_a_e_st.cpp \
|
|
|
|
M233_O_FILES := \
|
|
$(BUILD_DIR)/rel/executor.o \
|
|
$(BUILD_DIR)/rel/global_destructor_chain.o \
|
|
$(BUILD_DIR)/rel/d/a/e/d_a_e_st/d_a_e_st.o \
|
|
|
|
M233_LIBS := \
|
|
|
|
M233_CFLAGS := \
|
|
-sdata 0 \
|
|
-sdata2 0 \
|
|
|
|
M233_LDFLAGS := \
|
|
-nodefaults \
|
|
-fp hard \
|
|
-proc gekko \
|
|
-linkmode moreram \
|
|
-sdata 0 \
|
|
-sdata2 0 \
|
|
-m _prolog \
|
|
-lcf $(M233_LDSCRIPT) \
|
|
-unused -map $(M233_MAP) \
|
|
-w off \
|
|
|
|
$(M233_TARGET): $(M233_O_FILES) $(M233_LIBS)
|
|
@echo [233] creating $(M233_TARGET)
|
|
@echo $(M233_LIBS) $(M233_O_FILES) > build/M233_ofiles
|
|
@python3 tools/lcf.py rel 233 --output $(M233_LDSCRIPT)
|
|
@$(LD) -opt_partial -strip_partial $(M233_LDFLAGS) -o $(M233_TARGET) @build/M233_ofiles
|
|
|
|
$(BUILD_DIR)/rel/d/a/e/d_a_e_st/%.o: rel/d/a/e/d_a_e_st/%.cpp
|
|
@echo [233] building $@
|
|
@mkdir -p $(@D)
|
|
@iconv -f UTF-8 -t SHIFT-JIS -o $@.iconv.cpp $<
|
|
@$(CC) $(CFLAGS) $(M233_CFLAGS) -c -o $@ $@.iconv.cpp
|
|
|
|
|