#
# Generated By: dol2asm
#

M55_TARGET := $(BUILD_DIR)/rel/d/a/d_a_spinner.plf
M55_LDSCRIPT := $(BUILD_DIR)/rel/d/a/d_a_spinner.lcf
M55_MAP := $(BUILD_DIR)/rel/d/a/d_a_spinner.map

M55_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/d_a_spinner/d_a_spinner.cpp \

M55_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/global_destructor_chain.o \
	$(BUILD_DIR)/rel/d/a/d_a_spinner/d_a_spinner.o \

M55_LIBS := \

M55_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M55_TARGET): $(M55_O_FILES) $(M55_LIBS)
	@echo [ 55] creating $(M55_TARGET)
	@echo $(M55_LIBS) $(M55_O_FILES) > build/M55_ofiles
	@python3 tools/lcf.py rel 55 --output $(M55_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M55_LDFLAGS) -o $(M55_TARGET) @build/M55_ofiles

$(BUILD_DIR)/rel/d/a/d_a_spinner/%.o: rel/d/a/d_a_spinner/%.cpp $(BUILD_DIR)/rel/d/a/d_a_spinner/%.d
	@echo [ 55] building $@
	@mkdir -p $(@D)
	@$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp
	@$(CC) $(CFLAGS) $(M55_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
M55_D_FILES := $(M55_O_FILES:.o=.d)
$(M55_D_FILES):
include $(wildcard $(M55_D_FILES))
endif


