#
# Generated By: dol2asm
#

M11_TARGET := $(BUILD_DIR)/rel/d/a/d_a_ep.plf
M11_LDSCRIPT := $(BUILD_DIR)/rel/d/a/d_a_ep.lcf
M11_MAP := $(BUILD_DIR)/rel/d/a/d_a_ep.map

M11_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/d_a_ep/d_a_ep.cpp \

M11_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/d_a_ep/d_a_ep.o \

M11_LIBS := \

M11_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M11_TARGET): $(M11_O_FILES) $(M11_LIBS)
	@echo [ 11] creating $(M11_TARGET)
	@echo $(M11_LIBS) $(M11_O_FILES) > build/M11_ofiles
	@python3 tools/lcf.py rel 11 --output $(M11_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M11_LDFLAGS) -o $(M11_TARGET) @build/M11_ofiles

$(BUILD_DIR)/rel/d/a/d_a_ep/%.o: rel/d/a/d_a_ep/%.cpp $(BUILD_DIR)/rel/d/a/d_a_ep/%.d
	@echo [ 11] building $@
	@mkdir -p $(@D)
	@$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp
	@$(CC) $(CFLAGS) $(M11_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
M11_D_FILES := $(M11_O_FILES:.o=.d)
$(M11_D_FILES):
include $(wildcard $(M11_D_FILES))
endif


