#
# Generated By: dol2asm
#

M76_TARGET := $(BUILD_DIR)/rel/d/a/kytag/d_a_kytag11.plf
M76_LDSCRIPT := $(BUILD_DIR)/rel/d/a/kytag/d_a_kytag11.lcf
M76_MAP := $(BUILD_DIR)/rel/d/a/kytag/d_a_kytag11.map

M76_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/kytag/d_a_kytag11/d_a_kytag11.cpp \

M76_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/kytag/d_a_kytag11/d_a_kytag11.o \

M76_LIBS := \

M76_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \
	-sym on \

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

$(M76_TARGET): $(M76_O_FILES) $(M76_LIBS)
	@echo [ 76] creating $(M76_TARGET)
	@echo $(M76_LIBS) $(M76_O_FILES) > build/M76_ofiles
	@python3 tools/lcf.py rel 76 --output $(M76_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M76_LDFLAGS) -o $(M76_TARGET) @build/M76_ofiles

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


