#
# Generated By: dol2asm
#

M631_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_ss_item.plf
M631_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_ss_item.lcf
M631_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_ss_item.map

M631_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/obj/d_a_obj_ss_item/d_a_obj_ss_item.cpp \

M631_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/obj/d_a_obj_ss_item/d_a_obj_ss_item.o \

M631_LIBS := \

M631_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M631_TARGET): $(M631_O_FILES) $(M631_LIBS)
	@echo [631] creating $(M631_TARGET)
	@echo $(M631_LIBS) $(M631_O_FILES) > build/M631_ofiles
	@python3 tools/lcf.py rel 631 --output $(M631_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M631_LDFLAGS) -o $(M631_TARGET) @build/M631_ofiles

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


