#
# Generated By: dol2asm
#

M121_TARGET := $(BUILD_DIR)/rel/d/a/tag/d_a_tag_CstaSw.plf
M121_LDSCRIPT := $(BUILD_DIR)/rel/d/a/tag/d_a_tag_CstaSw.lcf
M121_MAP := $(BUILD_DIR)/rel/d/a/tag/d_a_tag_CstaSw.map

M121_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/tag/d_a_tag_CstaSw/d_a_tag_CstaSw.cpp \

M121_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/global_destructor_chain.o \
	$(BUILD_DIR)/rel/d/a/tag/d_a_tag_CstaSw/d_a_tag_CstaSw.o \

M121_LIBS := \

M121_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M121_TARGET): $(M121_O_FILES) $(M121_LIBS)
	@echo [121] creating $(M121_TARGET)
	@echo $(M121_LIBS) $(M121_O_FILES) > build/M121_ofiles
	@python3 tools/lcf.py rel 121 --output $(M121_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M121_LDFLAGS) -o $(M121_TARGET) @build/M121_ofiles

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


