#
# Generated By: dol2asm
#

M209_TARGET := $(BUILD_DIR)/rel/d/a/e/d_a_e_mf.plf
M209_LDSCRIPT := $(BUILD_DIR)/rel/d/a/e/d_a_e_mf.lcf
M209_MAP := $(BUILD_DIR)/rel/d/a/e/d_a_e_mf.map

M209_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/e/d_a_e_mf/d_a_e_mf.cpp \

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

M209_LIBS := \

M209_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M209_TARGET): $(M209_O_FILES) $(M209_LIBS)
	@echo [209] creating $(M209_TARGET)
	@echo $(M209_LIBS) $(M209_O_FILES) > build/M209_ofiles
	@python3 tools/lcf.py rel 209 --output $(M209_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M209_LDFLAGS) -o $(M209_TARGET) @build/M209_ofiles

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


