#
# Generated By: dol2asm
#

M30_TARGET := $(BUILD_DIR)/rel/d/a/tag/d_a_tag_event.plf
M30_LDSCRIPT := $(BUILD_DIR)/rel/d/a/tag/d_a_tag_event.lcf
M30_MAP := $(BUILD_DIR)/rel/d/a/tag/d_a_tag_event.map

M30_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/tag/d_a_tag_event/d_a_tag_event.cpp \

M30_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/tag/d_a_tag_event/d_a_tag_event.o \

M30_LIBS := \

M30_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M30_TARGET): $(M30_O_FILES) $(M30_LIBS)
	@echo [ 30] creating $(M30_TARGET)
	@echo $(M30_LIBS) $(M30_O_FILES) > build/M30_ofiles
	@python3 tools/lcf.py rel 30 --output $(M30_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M30_LDFLAGS) -o $(M30_TARGET) @build/M30_ofiles

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


