#
# Generated By: dol2asm
#

M273_TARGET := $(BUILD_DIR)/rel/d/a/kytag/d_a_kytag12.plf
M273_LDSCRIPT := $(BUILD_DIR)/rel/d/a/kytag/d_a_kytag12.lcf
M273_MAP := $(BUILD_DIR)/rel/d/a/kytag/d_a_kytag12.map

M273_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/kytag/d_a_kytag12/d_a_kytag12.cpp \

M273_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/kytag/d_a_kytag12/d_a_kytag12.o \

M273_LIBS := \

M273_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M273_TARGET): $(M273_O_FILES) $(M273_LIBS)
	@echo [273] creating $(M273_TARGET)
	@echo $(M273_LIBS) $(M273_O_FILES) > build/M273_ofiles
	@python3 tools/lcf.py rel 273 --output $(M273_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M273_LDFLAGS) -o $(M273_TARGET) @build/M273_ofiles

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


