#
# Generated By: dol2asm
#

M116_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_yobikusa.plf
M116_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_yobikusa.lcf
M116_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_yobikusa.map

M116_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/obj/d_a_obj_yobikusa/d_a_obj_yobikusa.cpp \

M116_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/obj/d_a_obj_yobikusa/d_a_obj_yobikusa.o \

M116_LIBS := \

M116_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M116_TARGET): $(M116_O_FILES) $(M116_LIBS)
	@echo [116] creating $(M116_TARGET)
	@echo $(M116_LIBS) $(M116_O_FILES) > build/M116_ofiles
	@python3 tools/lcf.py rel 116 --output $(M116_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M116_LDFLAGS) -o $(M116_TARGET) @build/M116_ofiles

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


