#
# Generated By: dol2asm
#

M61_TARGET := $(BUILD_DIR)/rel/d/a/d_a_canoe.plf
M61_LDSCRIPT := $(BUILD_DIR)/rel/d/a/d_a_canoe.lcf
M61_MAP := $(BUILD_DIR)/rel/d/a/d_a_canoe.map

M61_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/d_a_canoe/d_a_canoe.cpp \

M61_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/global_destructor_chain.o \
	$(BUILD_DIR)/rel/d/a/d_a_canoe/d_a_canoe.o \

M61_LIBS := \

M61_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M61_TARGET): $(M61_O_FILES) $(M61_LIBS)
	@echo [ 61] creating $(M61_TARGET)
	@echo $(M61_LIBS) $(M61_O_FILES) > build/M61_ofiles
	@python3 tools/lcf.py rel 61 --output $(M61_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M61_LDFLAGS) -o $(M61_TARGET) @build/M61_ofiles

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


