#
# Generated By: dol2asm
#

M588_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_onsenTaru.plf
M588_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_onsenTaru.lcf
M588_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_onsenTaru.map

M588_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/obj/d_a_obj_onsenTaru/d_a_obj_onsenTaru.cpp \

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

M588_LIBS := \

M588_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M588_TARGET): $(M588_O_FILES) $(M588_LIBS)
	@echo [588] creating $(M588_TARGET)
	@echo $(M588_LIBS) $(M588_O_FILES) > build/M588_ofiles
	@python3 tools/lcf.py rel 588 --output $(M588_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M588_LDFLAGS) -o $(M588_TARGET) @build/M588_ofiles

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


