#
# Generated By: dol2asm
#

M122_TARGET := $(BUILD_DIR)/rel/d/a/tag/d_a_tag_ajnot.plf
M122_LDSCRIPT := $(BUILD_DIR)/rel/d/a/tag/d_a_tag_ajnot.lcf
M122_MAP := $(BUILD_DIR)/rel/d/a/tag/d_a_tag_ajnot.map

M122_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/tag/d_a_tag_ajnot/d_a_tag_ajnot.cpp \

M122_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/tag/d_a_tag_ajnot/d_a_tag_ajnot.o \

M122_LIBS := \

M122_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M122_TARGET): $(M122_O_FILES) $(M122_LIBS)
	@echo [122] creating $(M122_TARGET)
	@echo $(M122_LIBS) $(M122_O_FILES) > build/M122_ofiles
	@python3 tools/lcf.py rel 122 --output $(M122_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M122_LDFLAGS) -o $(M122_TARGET) @build/M122_ofiles

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


