#
# Generated By: dol2asm
#

M266_TARGET := $(BUILD_DIR)/rel/d/a/kytag/d_a_kytag01.plf
M266_LDSCRIPT := $(BUILD_DIR)/rel/d/a/kytag/d_a_kytag01.lcf
M266_MAP := $(BUILD_DIR)/rel/d/a/kytag/d_a_kytag01.map

M266_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/kytag/d_a_kytag01/d_a_kytag01.cpp \

M266_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/kytag/d_a_kytag01/d_a_kytag01.o \

M266_LIBS := \

M266_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M266_TARGET): $(M266_O_FILES) $(M266_LIBS)
	@echo [266] creating $(M266_TARGET)
	@echo $(M266_LIBS) $(M266_O_FILES) > build/M266_ofiles
	@python3 tools/lcf.py rel 266 --output $(M266_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M266_LDFLAGS) -o $(M266_TARGET) @build/M266_ofiles

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


