#
# Generated By: dol2asm
#

M340_TARGET := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_ne.plf
M340_LDSCRIPT := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_ne.lcf
M340_MAP := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_ne.map

M340_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/npc/d_a_npc_ne/d_a_npc_ne.cpp \

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

M340_LIBS := \

M340_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M340_TARGET): $(M340_O_FILES) $(M340_LIBS)
	@echo [340] creating $(M340_TARGET)
	@echo $(M340_LIBS) $(M340_O_FILES) > build/M340_ofiles
	@python3 tools/lcf.py rel 340 --output $(M340_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M340_LDFLAGS) -o $(M340_TARGET) @build/M340_ofiles

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


