#
# Generated By: dol2asm
#

M381_TARGET := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_yamit.plf
M381_LDSCRIPT := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_yamit.lcf
M381_MAP := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_yamit.map

M381_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/npc/d_a_npc_yamit/d_a_npc_yamit.cpp \

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

M381_LIBS := \

M381_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M381_TARGET): $(M381_O_FILES) $(M381_LIBS)
	@echo [381] creating $(M381_TARGET)
	@echo $(M381_LIBS) $(M381_O_FILES) > build/M381_ofiles
	@python3 tools/lcf.py rel 381 --output $(M381_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M381_LDFLAGS) -o $(M381_TARGET) @build/M381_ofiles

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


