#
# Generated By: dol2asm
#

M267_TARGET := $(BUILD_DIR)/rel/d/a/kytag/d_a_kytag02.plf
M267_LDSCRIPT := $(BUILD_DIR)/rel/d/a/kytag/d_a_kytag02.lcf
M267_MAP := $(BUILD_DIR)/rel/d/a/kytag/d_a_kytag02.map

M267_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/kytag/d_a_kytag02/d_a_kytag02.cpp \

M267_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/kytag/d_a_kytag02/d_a_kytag02.o \

M267_LIBS := \

M267_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M267_TARGET): $(M267_O_FILES) $(M267_LIBS)
	@echo [267] creating $(M267_TARGET)
	@echo $(M267_LIBS) $(M267_O_FILES) > build/M267_ofiles
	@python3 tools/lcf.py rel 267 --output $(M267_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M267_LDFLAGS) -o $(M267_TARGET) @build/M267_ofiles

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


