#
# Generated By: dol2asm
#

M87_TARGET := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_taro.plf
M87_LDSCRIPT := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_taro.lcf
M87_MAP := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_taro.map

M87_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/npc/d_a_npc_taro/d_a_npc_taro.cpp \

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

M87_LIBS := \

M87_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M87_TARGET): $(M87_O_FILES) $(M87_LIBS)
	@echo [ 87] creating $(M87_TARGET)
	@echo $(M87_LIBS) $(M87_O_FILES) > build/M87_ofiles
	@python3 tools/lcf.py rel 87 --output $(M87_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M87_LDFLAGS) -o $(M87_TARGET) @build/M87_ofiles

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


