#
# Generated By: dol2asm
#

M207_TARGET := $(BUILD_DIR)/rel/d/a/e/d_a_e_mb.plf
M207_LDSCRIPT := $(BUILD_DIR)/rel/d/a/e/d_a_e_mb.lcf
M207_MAP := $(BUILD_DIR)/rel/d/a/e/d_a_e_mb.map

M207_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/e/d_a_e_mb/d_a_e_mb.cpp \

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

M207_LIBS := \

M207_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M207_TARGET): $(M207_O_FILES) $(M207_LIBS)
	@echo [207] creating $(M207_TARGET)
	@echo $(M207_LIBS) $(M207_O_FILES) > build/M207_ofiles
	@python3 tools/lcf.py rel 207 --output $(M207_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M207_LDFLAGS) -o $(M207_TARGET) @build/M207_ofiles

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


