#
# Generated By: dol2asm
#

M250_TARGET := $(BUILD_DIR)/rel/d/a/e/d_a_e_yg.plf
M250_LDSCRIPT := $(BUILD_DIR)/rel/d/a/e/d_a_e_yg.lcf
M250_MAP := $(BUILD_DIR)/rel/d/a/e/d_a_e_yg.map

M250_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/e/d_a_e_yg/d_a_e_yg.cpp \

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

M250_LIBS := \

M250_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M250_TARGET): $(M250_O_FILES) $(M250_LIBS)
	@echo [250] creating $(M250_TARGET)
	@echo $(M250_LIBS) $(M250_O_FILES) > build/M250_ofiles
	@python3 tools/lcf.py rel 250 --output $(M250_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M250_LDFLAGS) -o $(M250_TARGET) @build/M250_ofiles

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


