#
# Generated By: dol2asm
#

M497_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_kbox.plf
M497_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_kbox.lcf
M497_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_kbox.map

M497_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/obj/d_a_obj_kbox/d_a_obj_kbox.cpp \

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

M497_LIBS := \

M497_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M497_TARGET): $(M497_O_FILES) $(M497_LIBS)
	@echo [497] creating $(M497_TARGET)
	@echo $(M497_LIBS) $(M497_O_FILES) > build/M497_ofiles
	@python3 tools/lcf.py rel 497 --output $(M497_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M497_LDFLAGS) -o $(M497_TARGET) @build/M497_ofiles

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


