#
# Generated By: dol2asm
#

M221_TARGET := $(BUILD_DIR)/rel/d/a/e/d_a_e_po.plf
M221_LDSCRIPT := $(BUILD_DIR)/rel/d/a/e/d_a_e_po.lcf
M221_MAP := $(BUILD_DIR)/rel/d/a/e/d_a_e_po.map

M221_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/e/d_a_e_po/d_a_e_po.cpp \

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

M221_LIBS := \

M221_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M221_TARGET): $(M221_O_FILES) $(M221_LIBS)
	@echo [221] creating $(M221_TARGET)
	@echo $(M221_LIBS) $(M221_O_FILES) > build/M221_ofiles
	@python3 tools/lcf.py rel 221 --output $(M221_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M221_LDFLAGS) -o $(M221_TARGET) @build/M221_ofiles

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


