#
# Generated By: dol2asm
#

M212_TARGET := $(BUILD_DIR)/rel/d/a/e/d_a_e_mm.plf
M212_LDSCRIPT := $(BUILD_DIR)/rel/d/a/e/d_a_e_mm.lcf
M212_MAP := $(BUILD_DIR)/rel/d/a/e/d_a_e_mm.map

M212_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/e/d_a_e_mm/d_a_e_mm.cpp \

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

M212_LIBS := \

M212_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M212_TARGET): $(M212_O_FILES) $(M212_LIBS)
	@echo [212] creating $(M212_TARGET)
	@echo $(M212_LIBS) $(M212_O_FILES) > build/M212_ofiles
	@python3 tools/lcf.py rel 212 --output $(M212_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M212_LDFLAGS) -o $(M212_TARGET) @build/M212_ofiles

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


