#
# Generated By: dol2asm
#

M347_TARGET := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_post.plf
M347_LDSCRIPT := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_post.lcf
M347_MAP := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_post.map

M347_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/npc/d_a_npc_post/d_a_npc_post.cpp \

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

M347_LIBS := \

M347_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M347_TARGET): $(M347_O_FILES) $(M347_LIBS)
	@echo [347] creating $(M347_TARGET)
	@echo $(M347_LIBS) $(M347_O_FILES) > build/M347_ofiles
	@python3 tools/lcf.py rel 347 --output $(M347_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M347_LDFLAGS) -o $(M347_TARGET) @build/M347_ofiles

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


