#
# Generated By: dol2asm
#

M274_TARGET := $(BUILD_DIR)/rel/d/a/kytag/d_a_kytag13.plf
M274_LDSCRIPT := $(BUILD_DIR)/rel/d/a/kytag/d_a_kytag13.lcf
M274_MAP := $(BUILD_DIR)/rel/d/a/kytag/d_a_kytag13.map

M274_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/kytag/d_a_kytag13/d_a_kytag13.cpp \

M274_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/kytag/d_a_kytag13/d_a_kytag13.o \

M274_LIBS := \

M274_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M274_TARGET): $(M274_O_FILES) $(M274_LIBS)
	@echo [274] creating $(M274_TARGET)
	@echo $(M274_LIBS) $(M274_O_FILES) > build/M274_ofiles
	@python3 tools/lcf.py rel 274 --output $(M274_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M274_LDFLAGS) -o $(M274_TARGET) @build/M274_ofiles

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


