#
# Generated By: dol2asm
#

M578_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_mvstair.plf
M578_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_mvstair.lcf
M578_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_mvstair.map

M578_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/obj/d_a_obj_mvstair/unknown_translation_unit_bss.cpp \
	rel/d/a/obj/d_a_obj_mvstair/d_a_obj_mvstair.cpp \

M578_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/obj/d_a_obj_mvstair/unknown_translation_unit_bss.o \
	$(BUILD_DIR)/rel/d/a/obj/d_a_obj_mvstair/d_a_obj_mvstair.o \

M578_LIBS := \

M578_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M578_TARGET): $(M578_O_FILES) $(M578_LIBS)
	@echo [578] creating $(M578_TARGET)
	@echo $(M578_LIBS) $(M578_O_FILES) > build/M578_ofiles
	@python3 tools/lcf.py rel 578 --output $(M578_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M578_LDFLAGS) -o $(M578_TARGET) @build/M578_ofiles

$(BUILD_DIR)/rel/d/a/obj/d_a_obj_mvstair/%.o: rel/d/a/obj/d_a_obj_mvstair/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_mvstair/%.d
	@echo [578] building $@
	@mkdir -p $(@D)
	@$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp
	@$(CC) $(CFLAGS) $(M578_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
M578_D_FILES := $(M578_O_FILES:.o=.d)
$(M578_D_FILES):
include $(wildcard $(M578_D_FILES))
endif


