#
# Generated By: dol2asm
#

M249_TARGET := $(BUILD_DIR)/rel/d/a/e/d_a_e_yd_leaf.plf
M249_LDSCRIPT := $(BUILD_DIR)/rel/d/a/e/d_a_e_yd_leaf.lcf
M249_MAP := $(BUILD_DIR)/rel/d/a/e/d_a_e_yd_leaf.map

M249_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/e/d_a_e_yd_leaf/d_a_e_yd_leaf.cpp \

M249_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/e/d_a_e_yd_leaf/d_a_e_yd_leaf.o \

M249_LIBS := \

M249_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M249_TARGET): $(M249_O_FILES) $(M249_LIBS)
	@echo [249] creating $(M249_TARGET)
	@echo $(M249_LIBS) $(M249_O_FILES) > build/M249_ofiles
	@python3 tools/lcf.py rel 249 --output $(M249_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M249_LDFLAGS) -o $(M249_TARGET) @build/M249_ofiles

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


