#
# Generated By: dol2asm
#

M254_TARGET := $(BUILD_DIR)/rel/d/a/e/d_a_e_ym_tag.plf
M254_LDSCRIPT := $(BUILD_DIR)/rel/d/a/e/d_a_e_ym_tag.lcf
M254_MAP := $(BUILD_DIR)/rel/d/a/e/d_a_e_ym_tag.map

M254_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/e/d_a_e_ym_tag/d_a_e_ym_tag.cpp \

M254_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/e/d_a_e_ym_tag/d_a_e_ym_tag.o \

M254_LIBS := \

M254_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M254_TARGET): $(M254_O_FILES) $(M254_LIBS)
	@echo [254] creating $(M254_TARGET)
	@echo $(M254_LIBS) $(M254_O_FILES) > build/M254_ofiles
	@python3 tools/lcf.py rel 254 --output $(M254_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M254_LDFLAGS) -o $(M254_TARGET) @build/M254_ofiles

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


