#
# Generated By: dol2asm
#

M186_TARGET := $(BUILD_DIR)/rel/d/a/e/d_a_e_dk.plf
M186_LDSCRIPT := $(BUILD_DIR)/rel/d/a/e/d_a_e_dk.lcf
M186_MAP := $(BUILD_DIR)/rel/d/a/e/d_a_e_dk.map

M186_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/e/d_a_e_dk/d_a_e_dk.cpp \

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

M186_LIBS := \

M186_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M186_TARGET): $(M186_O_FILES) $(M186_LIBS)
	@echo [186] creating $(M186_TARGET)
	@echo $(M186_LIBS) $(M186_O_FILES) > build/M186_ofiles
	@python3 tools/lcf.py rel 186 --output $(M186_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M186_LDFLAGS) -o $(M186_TARGET) @build/M186_ofiles

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


