#
# Generated By: dol2asm
#

M271_TARGET := $(BUILD_DIR)/rel/d/a/kytag/d_a_kytag08.plf
M271_LDSCRIPT := $(BUILD_DIR)/rel/d/a/kytag/d_a_kytag08.lcf
M271_MAP := $(BUILD_DIR)/rel/d/a/kytag/d_a_kytag08.map

M271_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/kytag/d_a_kytag08/d_a_kytag08.cpp \

M271_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/kytag/d_a_kytag08/d_a_kytag08.o \

M271_LIBS := \

M271_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M271_TARGET): $(M271_O_FILES) $(M271_LIBS)
	@echo [271] creating $(M271_TARGET)
	@echo $(M271_LIBS) $(M271_O_FILES) > build/M271_ofiles
	@python3 tools/lcf.py rel 271 --output $(M271_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M271_LDFLAGS) -o $(M271_TARGET) @build/M271_ofiles

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


