#
# Generated By: dol2asm
#

M84_TARGET := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_kkri.plf
M84_LDSCRIPT := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_kkri.lcf
M84_MAP := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_kkri.map

M84_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/npc/d_a_npc_kkri/d_a_npc_kkri.cpp \

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

M84_LIBS := \

M84_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M84_TARGET): $(M84_O_FILES) $(M84_LIBS)
	@echo [ 84] creating $(M84_TARGET)
	@echo $(M84_LIBS) $(M84_O_FILES) > build/M84_ofiles
	@python3 tools/lcf.py rel 84 --output $(M84_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M84_LDFLAGS) -o $(M84_TARGET) @build/M84_ofiles

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


