#
# Generated By: dol2asm
#

M31_TARGET := $(BUILD_DIR)/rel/d/a/tag/d_a_tag_evt.plf
M31_LDSCRIPT := $(BUILD_DIR)/rel/d/a/tag/d_a_tag_evt.lcf
M31_MAP := $(BUILD_DIR)/rel/d/a/tag/d_a_tag_evt.map

M31_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/tag/d_a_tag_evt/d_a_tag_evt.cpp \

M31_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/tag/d_a_tag_evt/d_a_tag_evt.o \

M31_LIBS := \

M31_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M31_TARGET): $(M31_O_FILES) $(M31_LIBS)
	@echo [ 31] creating $(M31_TARGET)
	@echo $(M31_LIBS) $(M31_O_FILES) > build/M31_ofiles
	@python3 tools/lcf.py rel 31 --output $(M31_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M31_LDFLAGS) -o $(M31_TARGET) @build/M31_ofiles

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


