#
# Generated By: dol2asm
#

M230_TARGET := $(BUILD_DIR)/rel/d/a/e/d_a_e_sh.plf
M230_LDSCRIPT := $(BUILD_DIR)/rel/d/a/e/d_a_e_sh.lcf
M230_MAP := $(BUILD_DIR)/rel/d/a/e/d_a_e_sh.map

M230_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/e/d_a_e_sh/d_a_e_sh.cpp \

M230_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/global_destructor_chain.o \
	$(BUILD_DIR)/rel/d/a/e/d_a_e_sh/d_a_e_sh.o \

M230_LIBS := \

M230_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

M230_LDFLAGS := \
	-nodefaults \
	-fp hard \
	-proc gekko \
	-linkmode moreram \
	-sdata 0 \
	-sdata2 0 \
	-m _prolog \
	-lcf $(M230_LDSCRIPT) \
	-unused -map $(M230_MAP) \
	-w off \

$(M230_TARGET): $(M230_O_FILES) $(M230_LIBS)
	@echo [230] creating $(M230_TARGET)
	@echo $(M230_LIBS) $(M230_O_FILES) > build/M230_ofiles
	@python3 tools/lcf.py rel 230 --output $(M230_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M230_LDFLAGS) -o $(M230_TARGET) @build/M230_ofiles

$(BUILD_DIR)/rel/d/a/e/d_a_e_sh/%.o: rel/d/a/e/d_a_e_sh/%.cpp $(BUILD_DIR)/rel/d/a/e/d_a_e_sh/%.d
	@echo [230] building $@
	@mkdir -p $(@D)
	@$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp
	@$(CC) $(CFLAGS) $(M230_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
M230_D_FILES := $(M230_O_FILES:.o=.d)
$(M230_D_FILES):
include $(wildcard $(M230_D_FILES))
endif


