#
# Generated By: dol2asm
#

M652_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_takaraDai.plf
M652_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_takaraDai.lcf
M652_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_takaraDai.map

M652_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/obj/d_a_obj_takaraDai/d_a_obj_takaraDai.cpp \

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

M652_LIBS := \

M652_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M652_TARGET): $(M652_O_FILES) $(M652_LIBS)
	@echo [652] creating $(M652_TARGET)
	@echo $(M652_LIBS) $(M652_O_FILES) > build/M652_ofiles
	@python3 tools/lcf.py rel 652 --output $(M652_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M652_LDFLAGS) -o $(M652_TARGET) @build/M652_ofiles

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


