#
# Generated By: dol2asm
#

M57_TARGET := $(BUILD_DIR)/rel/d/a/tag/d_a_tag_attention.plf
M57_LDSCRIPT := $(BUILD_DIR)/rel/d/a/tag/d_a_tag_attention.lcf
M57_MAP := $(BUILD_DIR)/rel/d/a/tag/d_a_tag_attention.map

M57_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/tag/d_a_tag_attention/d_a_tag_attention.cpp \

M57_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/tag/d_a_tag_attention/d_a_tag_attention.o \

M57_LIBS := \

M57_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M57_TARGET): $(M57_O_FILES) $(M57_LIBS)
	@echo [ 57] creating $(M57_TARGET)
	@echo $(M57_LIBS) $(M57_O_FILES) > build/M57_ofiles
	@python3 tools/lcf.py rel 57 --output $(M57_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M57_LDFLAGS) -o $(M57_TARGET) @build/M57_ofiles

$(BUILD_DIR)/rel/d/a/tag/d_a_tag_attention/%.o: rel/d/a/tag/d_a_tag_attention/%.cpp $(BUILD_DIR)/rel/d/a/tag/d_a_tag_attention/%.d
	@echo [ 57] building $@
	@mkdir -p $(@D)
	@$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp
	@$(CC) $(CFLAGS) $(M57_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
M57_D_FILES := $(M57_O_FILES:.o=.d)
$(M57_D_FILES):
include $(wildcard $(M57_D_FILES))
endif


