#
# Generated By: dol2asm
#

M130_TARGET := $(BUILD_DIR)/rel/d/a/tag/d_a_tag_mhint.plf
M130_LDSCRIPT := $(BUILD_DIR)/rel/d/a/tag/d_a_tag_mhint.lcf
M130_MAP := $(BUILD_DIR)/rel/d/a/tag/d_a_tag_mhint.map

M130_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/tag/d_a_tag_mhint/d_a_tag_mhint.cpp \

M130_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/tag/d_a_tag_mhint/d_a_tag_mhint.o \

M130_LIBS := \

M130_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M130_TARGET): $(M130_O_FILES) $(M130_LIBS)
	@echo [130] creating $(M130_TARGET)
	@echo $(M130_LIBS) $(M130_O_FILES) > build/M130_ofiles
	@python3 tools/lcf.py rel 130 --output $(M130_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M130_LDFLAGS) -o $(M130_TARGET) @build/M130_ofiles

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


