#
# Generated By: dol2asm
#

M210_TARGET := $(BUILD_DIR)/rel/d/a/e/d_a_e_mk.plf
M210_LDSCRIPT := $(BUILD_DIR)/rel/d/a/e/d_a_e_mk.lcf
M210_MAP := $(BUILD_DIR)/rel/d/a/e/d_a_e_mk.map

M210_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/e/d_a_e_mk/d_a_e_mk.cpp \

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

M210_LIBS := \

M210_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M210_TARGET): $(M210_O_FILES) $(M210_LIBS)
	@echo [210] creating $(M210_TARGET)
	@echo $(M210_LIBS) $(M210_O_FILES) > build/M210_ofiles
	@python3 tools/lcf.py rel 210 --output $(M210_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M210_LDFLAGS) -o $(M210_TARGET) @build/M210_ofiles

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


