#
# Generated By: dol2asm
#

M727_TARGET := $(BUILD_DIR)/rel/d/a/tag/d_a_tag_lv6CstaSw.plf
M727_LDSCRIPT := $(BUILD_DIR)/rel/d/a/tag/d_a_tag_lv6CstaSw.lcf
M727_MAP := $(BUILD_DIR)/rel/d/a/tag/d_a_tag_lv6CstaSw.map

M727_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/tag/d_a_tag_lv6CstaSw/d_a_tag_lv6CstaSw.cpp \

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

M727_LIBS := \

M727_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M727_TARGET): $(M727_O_FILES) $(M727_LIBS)
	@echo [727] creating $(M727_TARGET)
	@echo $(M727_LIBS) $(M727_O_FILES) > build/M727_ofiles
	@python3 tools/lcf.py rel 727 --output $(M727_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M727_LDFLAGS) -o $(M727_TARGET) @build/M727_ofiles

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


