#
# Generated By: dol2asm
#

M422_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_chest.plf
M422_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_chest.lcf
M422_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_chest.map

M422_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/obj/d_a_obj_chest/d_a_obj_chest.cpp \

M422_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/obj/d_a_obj_chest/d_a_obj_chest.o \

M422_LIBS := \

M422_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M422_TARGET): $(M422_O_FILES) $(M422_LIBS)
	@echo [422] creating $(M422_TARGET)
	@echo $(M422_LIBS) $(M422_O_FILES) > build/M422_ofiles
	@python3 tools/lcf.py rel 422 --output $(M422_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M422_LDFLAGS) -o $(M422_TARGET) @build/M422_ofiles

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


