#
# Generated By: dol2asm
#

M187_TARGET := $(BUILD_DIR)/rel/d/a/e/d_a_e_dt.plf
M187_LDSCRIPT := $(BUILD_DIR)/rel/d/a/e/d_a_e_dt.lcf
M187_MAP := $(BUILD_DIR)/rel/d/a/e/d_a_e_dt.map

M187_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/e/d_a_e_dt/d_a_e_dt.cpp \

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

M187_LIBS := \

M187_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M187_TARGET): $(M187_O_FILES) $(M187_LIBS)
	@echo [187] creating $(M187_TARGET)
	@echo $(M187_LIBS) $(M187_O_FILES) > build/M187_ofiles
	@python3 tools/lcf.py rel 187 --output $(M187_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M187_LDFLAGS) -o $(M187_TARGET) @build/M187_ofiles

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


