#
# Generated By: dol2asm
#

M376_TARGET := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_uri.plf
M376_LDSCRIPT := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_uri.lcf
M376_MAP := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_uri.map

M376_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/npc/d_a_npc_uri/d_a_npc_uri.cpp \

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

M376_LIBS := \

M376_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M376_TARGET): $(M376_O_FILES) $(M376_LIBS)
	@echo [376] creating $(M376_TARGET)
	@echo $(M376_LIBS) $(M376_O_FILES) > build/M376_ofiles
	@python3 tools/lcf.py rel 376 --output $(M376_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M376_LDFLAGS) -o $(M376_TARGET) @build/M376_ofiles

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


