#
# Generated By: dol2asm
#

M251_TARGET := $(BUILD_DIR)/rel/d/a/e/d_a_e_yh.plf
M251_LDSCRIPT := $(BUILD_DIR)/rel/d/a/e/d_a_e_yh.lcf
M251_MAP := $(BUILD_DIR)/rel/d/a/e/d_a_e_yh.map

M251_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/e/d_a_e_yh/d_a_e_yh.cpp \

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

M251_LIBS := \

M251_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M251_TARGET): $(M251_O_FILES) $(M251_LIBS)
	@echo [251] creating $(M251_TARGET)
	@echo $(M251_LIBS) $(M251_O_FILES) > build/M251_ofiles
	@python3 tools/lcf.py rel 251 --output $(M251_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M251_LDFLAGS) -o $(M251_TARGET) @build/M251_ofiles

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


