#
# Generated By: dol2asm
#

M721_TARGET := $(BUILD_DIR)/rel/d/a/tag/d_a_tag_gra.plf
M721_LDSCRIPT := $(BUILD_DIR)/rel/d/a/tag/d_a_tag_gra.lcf
M721_MAP := $(BUILD_DIR)/rel/d/a/tag/d_a_tag_gra.map

M721_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/tag/d_a_tag_gra/d_a_tag_gra.cpp \

M721_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/tag/d_a_tag_gra/d_a_tag_gra.o \

M721_LIBS := \

M721_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M721_TARGET): $(M721_O_FILES) $(M721_LIBS)
	@echo [721] creating $(M721_TARGET)
	@echo $(M721_LIBS) $(M721_O_FILES) > build/M721_ofiles
	@python3 tools/lcf.py rel 721 --output $(M721_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M721_LDFLAGS) -o $(M721_TARGET) @build/M721_ofiles

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


