#
# Generated By: dol2asm
#

M33_TARGET := $(BUILD_DIR)/rel/d/a/tag/d_a_tag_evtmsg.plf
M33_LDSCRIPT := $(BUILD_DIR)/rel/d/a/tag/d_a_tag_evtmsg.lcf
M33_MAP := $(BUILD_DIR)/rel/d/a/tag/d_a_tag_evtmsg.map

M33_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/tag/d_a_tag_evtmsg/d_a_tag_evtmsg.cpp \

M33_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/tag/d_a_tag_evtmsg/d_a_tag_evtmsg.o \

M33_LIBS := \

M33_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M33_TARGET): $(M33_O_FILES) $(M33_LIBS)
	@echo [ 33] creating $(M33_TARGET)
	@echo $(M33_LIBS) $(M33_O_FILES) > build/M33_ofiles
	@python3 tools/lcf.py rel 33 --output $(M33_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M33_LDFLAGS) -o $(M33_TARGET) @build/M33_ofiles

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


