#
# Generated By: dol2asm
#

M272_TARGET := $(BUILD_DIR)/rel/d/a/kytag/d_a_kytag09.plf
M272_LDSCRIPT := $(BUILD_DIR)/rel/d/a/kytag/d_a_kytag09.lcf
M272_MAP := $(BUILD_DIR)/rel/d/a/kytag/d_a_kytag09.map

M272_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/kytag/d_a_kytag09/d_a_kytag09.cpp \

M272_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/kytag/d_a_kytag09/d_a_kytag09.o \

M272_LIBS := \

M272_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M272_TARGET): $(M272_O_FILES) $(M272_LIBS)
	@echo [272] creating $(M272_TARGET)
	@echo $(M272_LIBS) $(M272_O_FILES) > build/M272_ofiles
	@python3 tools/lcf.py rel 272 --output $(M272_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M272_LDFLAGS) -o $(M272_TARGET) @build/M272_ofiles

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


