#
# Generated By: dol2asm
#

M20_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_movebox.plf
M20_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_movebox.lcf
M20_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_movebox.map

M20_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/obj/d_a_obj_movebox/d_a_obj_movebox.cpp \

M20_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/global_destructor_chain.o \
	$(BUILD_DIR)/rel/d/a/obj/d_a_obj_movebox/d_a_obj_movebox.o \

M20_LIBS := \

M20_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M20_TARGET): $(M20_O_FILES) $(M20_LIBS)
	@echo [ 20] creating $(M20_TARGET)
	@echo $(M20_LIBS) $(M20_O_FILES) > build/M20_ofiles
	@python3 tools/lcf.py rel 20 --output $(M20_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M20_LDFLAGS) -o $(M20_TARGET) @build/M20_ofiles

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


