#
# Generated By: dol2asm
#

M35_TARGET := $(BUILD_DIR)/rel/d/a/tag/d_a_tag_kmsg.plf
M35_LDSCRIPT := $(BUILD_DIR)/rel/d/a/tag/d_a_tag_kmsg.lcf
M35_MAP := $(BUILD_DIR)/rel/d/a/tag/d_a_tag_kmsg.map

M35_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/tag/d_a_tag_kmsg/d_a_tag_kmsg.cpp \

M35_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/tag/d_a_tag_kmsg/d_a_tag_kmsg.o \

M35_LIBS := \

M35_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \
	-sym on \

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

$(M35_TARGET): $(M35_O_FILES) $(M35_LIBS)
	@echo [ 35] creating $(M35_TARGET)
	@echo $(M35_LIBS) $(M35_O_FILES) > build/M35_ofiles
	@python3 tools/lcf.py rel 35 --output $(M35_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M35_LDFLAGS) -o $(M35_TARGET) @build/M35_ofiles

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


