#
# Generated By: dol2asm
#

M646_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_swspinner.plf
M646_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_swspinner.lcf
M646_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_swspinner.map

M646_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/obj/d_a_obj_swspinner/d_a_obj_swspinner.cpp \

M646_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/obj/d_a_obj_swspinner/d_a_obj_swspinner.o \

M646_LIBS := \

M646_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M646_TARGET): $(M646_O_FILES) $(M646_LIBS)
	@echo [646] creating $(M646_TARGET)
	@echo $(M646_LIBS) $(M646_O_FILES) > build/M646_ofiles
	@python3 tools/lcf.py rel 646 --output $(M646_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M646_LDFLAGS) -o $(M646_TARGET) @build/M646_ofiles

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


