#
# 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 $(BUILD_DIR)/rel/d/a/e/d_a_e_st/%.d
	@echo [233] building $@
	@mkdir -p $(@D)
	@$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp
	@$(CC) $(CFLAGS) $(M233_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp
	@if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi

ifndef DISABLE_DEPS
M233_D_FILES := $(M233_O_FILES:.o=.d)
$(M233_D_FILES):
include $(wildcard $(M233_D_FILES))
endif


