#
# Generated By: dol2asm
#

M216_TARGET := $(BUILD_DIR)/rel/d/a/e/d_a_e_oc.plf
M216_LDSCRIPT := $(BUILD_DIR)/rel/d/a/e/d_a_e_oc.lcf
M216_MAP := $(BUILD_DIR)/rel/d/a/e/d_a_e_oc.map

M216_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/e/d_a_e_oc/d_a_e_oc.cpp \

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

M216_LIBS := \

M216_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M216_TARGET): $(M216_O_FILES) $(M216_LIBS)
	@echo [216] creating $(M216_TARGET)
	@echo $(M216_LIBS) $(M216_O_FILES) > build/M216_ofiles
	@python3 tools/lcf.py rel 216 --output $(M216_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M216_LDFLAGS) -o $(M216_TARGET) @build/M216_ofiles

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


