#
# Generated By: dol2asm
#

M214_TARGET := $(BUILD_DIR)/rel/d/a/e/d_a_e_ms.plf
M214_LDSCRIPT := $(BUILD_DIR)/rel/d/a/e/d_a_e_ms.lcf
M214_MAP := $(BUILD_DIR)/rel/d/a/e/d_a_e_ms.map

M214_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/e/d_a_e_ms/d_a_e_ms.cpp \

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

M214_LIBS := \

M214_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M214_TARGET): $(M214_O_FILES) $(M214_LIBS)
	@echo [214] creating $(M214_TARGET)
	@echo $(M214_LIBS) $(M214_O_FILES) > build/M214_ofiles
	@python3 tools/lcf.py rel 214 --output $(M214_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M214_LDFLAGS) -o $(M214_TARGET) @build/M214_ofiles

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


