#
# Generated By: dol2asm
#

M252_TARGET := $(BUILD_DIR)/rel/d/a/e/d_a_e_yk.plf
M252_LDSCRIPT := $(BUILD_DIR)/rel/d/a/e/d_a_e_yk.lcf
M252_MAP := $(BUILD_DIR)/rel/d/a/e/d_a_e_yk.map

M252_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/e/d_a_e_yk/d_a_e_yk.cpp \

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

M252_LIBS := \

M252_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M252_TARGET): $(M252_O_FILES) $(M252_LIBS)
	@echo [252] creating $(M252_TARGET)
	@echo $(M252_LIBS) $(M252_O_FILES) > build/M252_ofiles
	@python3 tools/lcf.py rel 252 --output $(M252_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M252_LDFLAGS) -o $(M252_TARGET) @build/M252_ofiles

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


