#
# Generated By: dol2asm
#

M489_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_kag.plf
M489_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_kag.lcf
M489_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_kag.map

M489_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/obj/d_a_obj_kag/d_a_obj_kag.cpp \

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

M489_LIBS := \

M489_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M489_TARGET): $(M489_O_FILES) $(M489_LIBS)
	@echo [489] creating $(M489_TARGET)
	@echo $(M489_LIBS) $(M489_O_FILES) > build/M489_ofiles
	@python3 tools/lcf.py rel 489 --output $(M489_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M489_LDFLAGS) -o $(M489_TARGET) @build/M489_ofiles

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


