#
# Generated By: dol2asm
#

M171_TARGET := $(BUILD_DIR)/rel/d/a/e/d_a_e_arrow.plf
M171_LDSCRIPT := $(BUILD_DIR)/rel/d/a/e/d_a_e_arrow.lcf
M171_MAP := $(BUILD_DIR)/rel/d/a/e/d_a_e_arrow.map

M171_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/e/d_a_e_arrow/d_a_e_arrow.cpp \

M171_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/global_destructor_chain.o \
	$(BUILD_DIR)/rel/d/a/e/d_a_e_arrow/d_a_e_arrow.o \

M171_LIBS := \

M171_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M171_TARGET): $(M171_O_FILES) $(M171_LIBS)
	@echo [171] creating $(M171_TARGET)
	@echo $(M171_LIBS) $(M171_O_FILES) > build/M171_ofiles
	@python3 tools/lcf.py rel 171 --output $(M171_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M171_LDFLAGS) -o $(M171_TARGET) @build/M171_ofiles

$(BUILD_DIR)/rel/d/a/e/d_a_e_arrow/%.o: rel/d/a/e/d_a_e_arrow/%.cpp $(BUILD_DIR)/rel/d/a/e/d_a_e_arrow/%.d
	@echo [171] building $@
	@mkdir -p $(@D)
	@$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp
	@$(CC) $(CFLAGS) $(M171_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
M171_D_FILES := $(M171_O_FILES:.o=.d)
$(M171_D_FILES):
include $(wildcard $(M171_D_FILES))
endif


