#
# Generated By: dol2asm
#

M275_TARGET := $(BUILD_DIR)/rel/d/a/kytag/d_a_kytag15.plf
M275_LDSCRIPT := $(BUILD_DIR)/rel/d/a/kytag/d_a_kytag15.lcf
M275_MAP := $(BUILD_DIR)/rel/d/a/kytag/d_a_kytag15.map

M275_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/kytag/d_a_kytag15/d_a_kytag15.cpp \

M275_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/kytag/d_a_kytag15/d_a_kytag15.o \

M275_LIBS := \

M275_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M275_TARGET): $(M275_O_FILES) $(M275_LIBS)
	@echo [275] creating $(M275_TARGET)
	@echo $(M275_LIBS) $(M275_O_FILES) > build/M275_ofiles
	@python3 tools/lcf.py rel 275 --output $(M275_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M275_LDFLAGS) -o $(M275_TARGET) @build/M275_ofiles

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


