#
# Generated By: dol2asm
#

M77_TARGET := $(BUILD_DIR)/rel/d/a/kytag/d_a_kytag14.plf
M77_LDSCRIPT := $(BUILD_DIR)/rel/d/a/kytag/d_a_kytag14.lcf
M77_MAP := $(BUILD_DIR)/rel/d/a/kytag/d_a_kytag14.map

M77_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/kytag/d_a_kytag14/d_a_kytag14.cpp \

M77_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/kytag/d_a_kytag14/d_a_kytag14.o \

M77_LIBS := \

M77_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M77_TARGET): $(M77_O_FILES) $(M77_LIBS)
	@echo [ 77] creating $(M77_TARGET)
	@echo $(M77_LIBS) $(M77_O_FILES) > build/M77_ofiles
	@python3 tools/lcf.py rel 77 --output $(M77_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M77_LDFLAGS) -o $(M77_TARGET) @build/M77_ofiles

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


