#
# Generated By: dol2asm
#

M85_TARGET := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_kolin.plf
M85_LDSCRIPT := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_kolin.lcf
M85_MAP := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_kolin.map

M85_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/npc/d_a_npc_kolin/d_a_npc_kolin.cpp \

M85_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/global_destructor_chain.o \
	$(BUILD_DIR)/rel/d/a/npc/d_a_npc_kolin/d_a_npc_kolin.o \

M85_LIBS := \

M85_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M85_TARGET): $(M85_O_FILES) $(M85_LIBS)
	@echo [ 85] creating $(M85_TARGET)
	@echo $(M85_LIBS) $(M85_O_FILES) > build/M85_ofiles
	@python3 tools/lcf.py rel 85 --output $(M85_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M85_LDFLAGS) -o $(M85_TARGET) @build/M85_ofiles

$(BUILD_DIR)/rel/d/a/npc/d_a_npc_kolin/%.o: rel/d/a/npc/d_a_npc_kolin/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_kolin/%.d
	@echo [ 85] building $@
	@mkdir -p $(@D)
	@$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp
	@$(CC) $(CFLAGS) $(M85_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
M85_D_FILES := $(M85_O_FILES:.o=.d)
$(M85_D_FILES):
include $(wildcard $(M85_D_FILES))
endif


