#
# Generated By: dol2asm
#

M74_TARGET := $(BUILD_DIR)/rel/d/a/kytag/d_a_kytag05.plf
M74_LDSCRIPT := $(BUILD_DIR)/rel/d/a/kytag/d_a_kytag05.lcf
M74_MAP := $(BUILD_DIR)/rel/d/a/kytag/d_a_kytag05.map

M74_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/kytag/d_a_kytag05/d_a_kytag05.cpp \

M74_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/kytag/d_a_kytag05/d_a_kytag05.o \

M74_LIBS := \

M74_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M74_TARGET): $(M74_O_FILES) $(M74_LIBS)
	@echo [ 74] creating $(M74_TARGET)
	@echo $(M74_LIBS) $(M74_O_FILES) > build/M74_ofiles
	@python3 tools/lcf.py rel 74 --output $(M74_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M74_LDFLAGS) -o $(M74_TARGET) @build/M74_ofiles

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


