#
# Generated By: dol2asm
#

M380_TARGET := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_yamis.plf
M380_LDSCRIPT := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_yamis.lcf
M380_MAP := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_yamis.map

M380_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/npc/d_a_npc_yamis/d_a_npc_yamis.cpp \

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

M380_LIBS := \

M380_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M380_TARGET): $(M380_O_FILES) $(M380_LIBS)
	@echo [380] creating $(M380_TARGET)
	@echo $(M380_LIBS) $(M380_O_FILES) > build/M380_ofiles
	@python3 tools/lcf.py rel 380 --output $(M380_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M380_LDFLAGS) -o $(M380_TARGET) @build/M380_ofiles

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


