#
# Generated By: dol2asm
#

M576_TARGET := $(BUILD_DIR)/rel/d/a/obj/mirror/d_a_obj_mirror_table.plf
M576_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/mirror/d_a_obj_mirror_table.lcf
M576_MAP := $(BUILD_DIR)/rel/d/a/obj/mirror/d_a_obj_mirror_table.map

M576_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/obj/mirror/d_a_obj_mirror_table/d_a_obj_mirror_table.cpp \

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

M576_LIBS := \

M576_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M576_TARGET): $(M576_O_FILES) $(M576_LIBS)
	@echo [576] creating $(M576_TARGET)
	@echo $(M576_LIBS) $(M576_O_FILES) > build/M576_ofiles
	@python3 tools/lcf.py rel 576 --output $(M576_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M576_LDFLAGS) -o $(M576_TARGET) @build/M576_ofiles

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


