#
# Generated By: dol2asm
#

M722_TARGET := $(BUILD_DIR)/rel/d/a/tag/d_a_tag_guard.plf
M722_LDSCRIPT := $(BUILD_DIR)/rel/d/a/tag/d_a_tag_guard.lcf
M722_MAP := $(BUILD_DIR)/rel/d/a/tag/d_a_tag_guard.map

M722_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/tag/d_a_tag_guard/d_a_tag_guard.cpp \

M722_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/tag/d_a_tag_guard/d_a_tag_guard.o \

M722_LIBS := \

M722_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M722_TARGET): $(M722_O_FILES) $(M722_LIBS)
	@echo [722] creating $(M722_TARGET)
	@echo $(M722_LIBS) $(M722_O_FILES) > build/M722_ofiles
	@python3 tools/lcf.py rel 722 --output $(M722_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M722_LDFLAGS) -o $(M722_TARGET) @build/M722_ofiles

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


