#
# Generated By: dol2asm
#

M86_TARGET := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_maro.plf
M86_LDSCRIPT := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_maro.lcf
M86_MAP := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_maro.map

M86_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/npc/d_a_npc_maro/d_a_npc_maro.cpp \

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

M86_LIBS := \

M86_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M86_TARGET): $(M86_O_FILES) $(M86_LIBS)
	@echo [ 86] creating $(M86_TARGET)
	@echo $(M86_LIBS) $(M86_O_FILES) > build/M86_ofiles
	@python3 tools/lcf.py rel 86 --output $(M86_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M86_LDFLAGS) -o $(M86_TARGET) @build/M86_ofiles

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


