#
# Generated By: dol2asm
#

M217_TARGET := $(BUILD_DIR)/rel/d/a/e/d_a_e_oct_bg.plf
M217_LDSCRIPT := $(BUILD_DIR)/rel/d/a/e/d_a_e_oct_bg.lcf
M217_MAP := $(BUILD_DIR)/rel/d/a/e/d_a_e_oct_bg.map

M217_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/e/d_a_e_oct_bg/d_a_e_oct_bg.cpp \

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

M217_LIBS := \

M217_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M217_TARGET): $(M217_O_FILES) $(M217_LIBS)
	@echo [217] creating $(M217_TARGET)
	@echo $(M217_LIBS) $(M217_O_FILES) > build/M217_ofiles
	@python3 tools/lcf.py rel 217 --output $(M217_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M217_LDFLAGS) -o $(M217_TARGET) @build/M217_ofiles

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


