#
# Generated By: dol2asm
#

M15_TARGET := $(BUILD_DIR)/rel/d/a/kytag/d_a_kytag17.plf
M15_LDSCRIPT := $(BUILD_DIR)/rel/d/a/kytag/d_a_kytag17.lcf
M15_MAP := $(BUILD_DIR)/rel/d/a/kytag/d_a_kytag17.map

M15_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/kytag/d_a_kytag17/d_a_kytag17.cpp \

M15_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/kytag/d_a_kytag17/d_a_kytag17.o \

M15_LIBS := \

M15_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M15_TARGET): $(M15_O_FILES) $(M15_LIBS)
	@echo [ 15] creating $(M15_TARGET)
	@echo $(M15_LIBS) $(M15_O_FILES) > build/M15_ofiles
	@python3 tools/lcf.py rel 15 --output $(M15_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M15_LDFLAGS) -o $(M15_TARGET) @build/M15_ofiles

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


