#
# Generated By: dol2asm
#

M213_TARGET := $(BUILD_DIR)/rel/d/a/e/d_a_e_mm_mt.plf
M213_LDSCRIPT := $(BUILD_DIR)/rel/d/a/e/d_a_e_mm_mt.lcf
M213_MAP := $(BUILD_DIR)/rel/d/a/e/d_a_e_mm_mt.map

M213_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/e/d_a_e_mm_mt/d_a_e_mm_mt.cpp \

M213_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/e/d_a_e_mm_mt/d_a_e_mm_mt.o \

M213_LIBS := \

M213_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M213_TARGET): $(M213_O_FILES) $(M213_LIBS)
	@echo [213] creating $(M213_TARGET)
	@echo $(M213_LIBS) $(M213_O_FILES) > build/M213_ofiles
	@python3 tools/lcf.py rel 213 --output $(M213_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M213_LDFLAGS) -o $(M213_TARGET) @build/M213_ofiles

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


