#
# Generated By: dol2asm
#

M573_TARGET := $(BUILD_DIR)/rel/d/a/obj/mirror/d_a_obj_mirror_chain.plf
M573_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/mirror/d_a_obj_mirror_chain.lcf
M573_MAP := $(BUILD_DIR)/rel/d/a/obj/mirror/d_a_obj_mirror_chain.map

M573_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/obj/mirror/d_a_obj_mirror_chain/d_a_obj_mirror_chain.cpp \

M573_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/obj/mirror/d_a_obj_mirror_chain/d_a_obj_mirror_chain.o \

M573_LIBS := \

M573_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M573_TARGET): $(M573_O_FILES) $(M573_LIBS)
	@echo [573] creating $(M573_TARGET)
	@echo $(M573_LIBS) $(M573_O_FILES) > build/M573_ofiles
	@python3 tools/lcf.py rel 573 --output $(M573_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M573_LDFLAGS) -o $(M573_TARGET) @build/M573_ofiles

$(BUILD_DIR)/rel/d/a/obj/mirror/d_a_obj_mirror_chain/%.o: rel/d/a/obj/mirror/d_a_obj_mirror_chain/%.cpp $(BUILD_DIR)/rel/d/a/obj/mirror/d_a_obj_mirror_chain/%.d
	@echo [573] building $@
	@mkdir -p $(@D)
	@$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp
	@$(CC) $(CFLAGS) $(M573_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
M573_D_FILES := $(M573_O_FILES:.o=.d)
$(M573_D_FILES):
include $(wildcard $(M573_D_FILES))
endif


