#
# Generated By: dol2asm
#

M575_TARGET := $(BUILD_DIR)/rel/d/a/obj/mirror/d_a_obj_mirror_screw.plf
M575_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/mirror/d_a_obj_mirror_screw.lcf
M575_MAP := $(BUILD_DIR)/rel/d/a/obj/mirror/d_a_obj_mirror_screw.map

M575_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/obj/mirror/d_a_obj_mirror_screw/d_a_obj_mirror_screw.cpp \

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

M575_LIBS := \

M575_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M575_TARGET): $(M575_O_FILES) $(M575_LIBS)
	@echo [575] creating $(M575_TARGET)
	@echo $(M575_LIBS) $(M575_O_FILES) > build/M575_ofiles
	@python3 tools/lcf.py rel 575 --output $(M575_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M575_LDFLAGS) -o $(M575_TARGET) @build/M575_ofiles

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


