#
# Generated By: dol2asm
#

M255_TARGET := $(BUILD_DIR)/rel/d/a/e/d_a_e_ymb.plf
M255_LDSCRIPT := $(BUILD_DIR)/rel/d/a/e/d_a_e_ymb.lcf
M255_MAP := $(BUILD_DIR)/rel/d/a/e/d_a_e_ymb.map

M255_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/e/d_a_e_ymb/d_a_e_ymb.cpp \

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

M255_LIBS := \

M255_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M255_TARGET): $(M255_O_FILES) $(M255_LIBS)
	@echo [255] creating $(M255_TARGET)
	@echo $(M255_LIBS) $(M255_O_FILES) > build/M255_ofiles
	@python3 tools/lcf.py rel 255 --output $(M255_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M255_LDFLAGS) -o $(M255_TARGET) @build/M255_ofiles

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


