#
# Generated By: dol2asm
#

M185_TARGET := $(BUILD_DIR)/rel/d/a/e/d_a_e_df.plf
M185_LDSCRIPT := $(BUILD_DIR)/rel/d/a/e/d_a_e_df.lcf
M185_MAP := $(BUILD_DIR)/rel/d/a/e/d_a_e_df.map

M185_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/e/d_a_e_df/d_a_e_df.cpp \

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

M185_LIBS := \

M185_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M185_TARGET): $(M185_O_FILES) $(M185_LIBS)
	@echo [185] creating $(M185_TARGET)
	@echo $(M185_LIBS) $(M185_O_FILES) > build/M185_ofiles
	@python3 tools/lcf.py rel 185 --output $(M185_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M185_LDFLAGS) -o $(M185_TARGET) @build/M185_ofiles

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


