#
# Generated By: dol2asm
#

M123_TARGET := $(BUILD_DIR)/rel/d/a/tag/d_a_tag_attack_item.plf
M123_LDSCRIPT := $(BUILD_DIR)/rel/d/a/tag/d_a_tag_attack_item.lcf
M123_MAP := $(BUILD_DIR)/rel/d/a/tag/d_a_tag_attack_item.map

M123_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/tag/d_a_tag_attack_item/d_a_tag_attack_item.cpp \

M123_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/tag/d_a_tag_attack_item/d_a_tag_attack_item.o \

M123_LIBS := \

M123_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M123_TARGET): $(M123_O_FILES) $(M123_LIBS)
	@echo [123] creating $(M123_TARGET)
	@echo $(M123_LIBS) $(M123_O_FILES) > build/M123_ofiles
	@python3 tools/lcf.py rel 123 --output $(M123_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M123_LDFLAGS) -o $(M123_TARGET) @build/M123_ofiles

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


