#
# Generated By: dol2asm
#

M490_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_kage.plf
M490_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_kage.lcf
M490_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_kage.map

M490_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/obj/d_a_obj_kage/d_a_obj_kage.cpp \

M490_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/obj/d_a_obj_kage/d_a_obj_kage.o \

M490_LIBS := \

M490_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M490_TARGET): $(M490_O_FILES) $(M490_LIBS)
	@echo [490] creating $(M490_TARGET)
	@echo $(M490_LIBS) $(M490_O_FILES) > build/M490_ofiles
	@python3 tools/lcf.py rel 490 --output $(M490_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M490_LDFLAGS) -o $(M490_TARGET) @build/M490_ofiles

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


