#
# Generated By: dol2asm
#

M574_TARGET := $(BUILD_DIR)/rel/d/a/obj/mirror/d_a_obj_mirror_sand.plf
M574_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/mirror/d_a_obj_mirror_sand.lcf
M574_MAP := $(BUILD_DIR)/rel/d/a/obj/mirror/d_a_obj_mirror_sand.map

M574_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/obj/mirror/d_a_obj_mirror_sand/d_a_obj_mirror_sand.cpp \

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

M574_LIBS := \

M574_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M574_TARGET): $(M574_O_FILES) $(M574_LIBS)
	@echo [574] creating $(M574_TARGET)
	@echo $(M574_LIBS) $(M574_O_FILES) > build/M574_ofiles
	@python3 tools/lcf.py rel 574 --output $(M574_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M574_LDFLAGS) -o $(M574_TARGET) @build/M574_ofiles

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


