#
# Generated By: dol2asm
#

M206_TARGET := $(BUILD_DIR)/rel/d/a/e/d_a_e_kr.plf
M206_LDSCRIPT := $(BUILD_DIR)/rel/d/a/e/d_a_e_kr.lcf
M206_MAP := $(BUILD_DIR)/rel/d/a/e/d_a_e_kr.map

M206_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/e/d_a_e_kr/d_a_e_kr.cpp \

M206_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/global_destructor_chain.o \
	$(BUILD_DIR)/rel/d/a/e/d_a_e_kr/d_a_e_kr.o \

M206_LIBS := \

M206_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M206_TARGET): $(M206_O_FILES) $(M206_LIBS)
	@echo [206] creating $(M206_TARGET)
	@echo $(M206_LIBS) $(M206_O_FILES) > build/M206_ofiles
	@python3 tools/lcf.py rel 206 --output $(M206_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M206_LDFLAGS) -o $(M206_TARGET) @build/M206_ofiles

$(BUILD_DIR)/rel/d/a/e/d_a_e_kr/%.o: rel/d/a/e/d_a_e_kr/%.cpp $(BUILD_DIR)/rel/d/a/e/d_a_e_kr/%.d
	@echo [206] building $@
	@mkdir -p $(@D)
	@$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp
	@$(CC) $(CFLAGS) $(M206_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
M206_D_FILES := $(M206_O_FILES:.o=.d)
$(M206_D_FILES):
include $(wildcard $(M206_D_FILES))
endif


