#
# Generated By: dol2asm
#

M754_TARGET := $(BUILD_DIR)/rel/d/a/d_a_talk.plf
M754_LDSCRIPT := $(BUILD_DIR)/rel/d/a/d_a_talk.lcf
M754_MAP := $(BUILD_DIR)/rel/d/a/d_a_talk.map

M754_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/d_a_talk/d_a_talk.cpp \

M754_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/d_a_talk/d_a_talk.o \

M754_LIBS := \

M754_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M754_TARGET): $(M754_O_FILES) $(M754_LIBS)
	@echo [754] creating $(M754_TARGET)
	@echo $(M754_LIBS) $(M754_O_FILES) > build/M754_ofiles
	@python3 tools/lcf.py rel 754 --output $(M754_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M754_LDFLAGS) -o $(M754_TARGET) @build/M754_ofiles

$(BUILD_DIR)/rel/d/a/d_a_talk/%.o: rel/d/a/d_a_talk/%.cpp $(BUILD_DIR)/rel/d/a/d_a_talk/%.d
	@echo [754] building $@
	@mkdir -p $(@D)
	@$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp
	@$(CC) $(CFLAGS) $(M754_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
M754_D_FILES := $(M754_O_FILES:.o=.d)
$(M754_D_FILES):
include $(wildcard $(M754_D_FILES))
endif


