#
# Generated By: dol2asm
#

M484_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_ikada.plf
M484_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_ikada.lcf
M484_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_ikada.map

M484_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/obj/d_a_obj_ikada/d_a_obj_ikada.cpp \

M484_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/obj/d_a_obj_ikada/d_a_obj_ikada.o \

M484_LIBS := \

M484_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M484_TARGET): $(M484_O_FILES) $(M484_LIBS)
	@echo [484] creating $(M484_TARGET)
	@echo $(M484_LIBS) $(M484_O_FILES) > build/M484_ofiles
	@python3 tools/lcf.py rel 484 --output $(M484_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M484_LDFLAGS) -o $(M484_TARGET) @build/M484_ofiles

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


