#
# Generated By: dol2asm
#

M611_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_sakuita.plf
M611_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_sakuita.lcf
M611_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_sakuita.map

M611_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/obj/d_a_obj_sakuita/d_a_obj_sakuita.cpp \

M611_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/obj/d_a_obj_sakuita/d_a_obj_sakuita.o \

M611_LIBS := \

M611_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M611_TARGET): $(M611_O_FILES) $(M611_LIBS)
	@echo [611] creating $(M611_TARGET)
	@echo $(M611_LIBS) $(M611_O_FILES) > build/M611_ofiles
	@python3 tools/lcf.py rel 611 --output $(M611_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M611_LDFLAGS) -o $(M611_TARGET) @build/M611_ofiles

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


