#
# Generated By: dol2asm
#

M13_TARGET := $(BUILD_DIR)/rel/d/a/kytag/d_a_kytag00.plf
M13_LDSCRIPT := $(BUILD_DIR)/rel/d/a/kytag/d_a_kytag00.lcf
M13_MAP := $(BUILD_DIR)/rel/d/a/kytag/d_a_kytag00.map

M13_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/kytag/d_a_kytag00/d_a_kytag00.cpp \

M13_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/kytag/d_a_kytag00/d_a_kytag00.o \

M13_LIBS := \

M13_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M13_TARGET): $(M13_O_FILES) $(M13_LIBS)
	@echo [ 13] creating $(M13_TARGET)
	@echo $(M13_LIBS) $(M13_O_FILES) > build/M13_ofiles
	@python3 tools/lcf.py rel 13 --output $(M13_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M13_LDFLAGS) -o $(M13_TARGET) @build/M13_ofiles

$(BUILD_DIR)/rel/d/a/kytag/d_a_kytag00/%.o: rel/d/a/kytag/d_a_kytag00/%.cpp $(BUILD_DIR)/rel/d/a/kytag/d_a_kytag00/%.d
	@echo [ 13] building $@
	@mkdir -p $(@D)
	@$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp
	@$(CC) $(CFLAGS) $(M13_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
M13_D_FILES := $(M13_O_FILES:.o=.d)
$(M13_D_FILES):
include $(wildcard $(M13_D_FILES))
endif


