#
# Generated By: dol2asm
#

M382_TARGET := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_yelia.plf
M382_LDSCRIPT := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_yelia.lcf
M382_MAP := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_yelia.map

M382_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/npc/d_a_npc_yelia/d_a_npc_yelia.cpp \

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

M382_LIBS := \

M382_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M382_TARGET): $(M382_O_FILES) $(M382_LIBS)
	@echo [382] creating $(M382_TARGET)
	@echo $(M382_LIBS) $(M382_O_FILES) > build/M382_ofiles
	@python3 tools/lcf.py rel 382 --output $(M382_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M382_LDFLAGS) -o $(M382_TARGET) @build/M382_ofiles

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


