#
# Generated By: dol2asm
#

M248_TARGET := $(BUILD_DIR)/rel/d/a/e/d_a_e_yd.plf
M248_LDSCRIPT := $(BUILD_DIR)/rel/d/a/e/d_a_e_yd.lcf
M248_MAP := $(BUILD_DIR)/rel/d/a/e/d_a_e_yd.map

M248_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/e/d_a_e_yd/d_a_e_yd.cpp \

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

M248_LIBS := \

M248_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M248_TARGET): $(M248_O_FILES) $(M248_LIBS)
	@echo [248] creating $(M248_TARGET)
	@echo $(M248_LIBS) $(M248_O_FILES) > build/M248_ofiles
	@python3 tools/lcf.py rel 248 --output $(M248_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M248_LDFLAGS) -o $(M248_TARGET) @build/M248_ofiles

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


