#
# Generated By: dol2asm
#

M14_TARGET := $(BUILD_DIR)/rel/d/a/kytag/d_a_kytag04.plf
M14_LDSCRIPT := $(BUILD_DIR)/rel/d/a/kytag/d_a_kytag04.lcf
M14_MAP := $(BUILD_DIR)/rel/d/a/kytag/d_a_kytag04.map

M14_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/kytag/d_a_kytag04/d_a_kytag04.cpp \

M14_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/kytag/d_a_kytag04/d_a_kytag04.o \

M14_LIBS := \

M14_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M14_TARGET): $(M14_O_FILES) $(M14_LIBS)
	@echo [ 14] creating $(M14_TARGET)
	@echo $(M14_LIBS) $(M14_O_FILES) > build/M14_ofiles
	@python3 tools/lcf.py rel 14 --output $(M14_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M14_LDFLAGS) -o $(M14_TARGET) @build/M14_ofiles

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


