#
# Generated By: dol2asm
#

M106_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_metalbox.plf
M106_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_metalbox.lcf
M106_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_metalbox.map

M106_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/obj/d_a_obj_metalbox/d_a_obj_metalbox.cpp \

M106_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/obj/d_a_obj_metalbox/d_a_obj_metalbox.o \

M106_LIBS := \

M106_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M106_TARGET): $(M106_O_FILES) $(M106_LIBS)
	@echo [106] creating $(M106_TARGET)
	@echo $(M106_LIBS) $(M106_O_FILES) > build/M106_ofiles
	@python3 tools/lcf.py rel 106 --output $(M106_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M106_LDFLAGS) -o $(M106_TARGET) @build/M106_ofiles

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


