#
# Generated By: dol2asm
#

M612_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_sakuita_rope.plf
M612_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_sakuita_rope.lcf
M612_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_sakuita_rope.map

M612_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/obj/d_a_obj_sakuita_rope/d_a_obj_sakuita_rope.cpp \

M612_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/obj/d_a_obj_sakuita_rope/d_a_obj_sakuita_rope.o \

M612_LIBS := \

M612_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M612_TARGET): $(M612_O_FILES) $(M612_LIBS)
	@echo [612] creating $(M612_TARGET)
	@echo $(M612_LIBS) $(M612_O_FILES) > build/M612_ofiles
	@python3 tools/lcf.py rel 612 --output $(M612_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M612_LDFLAGS) -o $(M612_TARGET) @build/M612_ofiles

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


