#
# Generated By: dol2asm
#

M356_TARGET := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_seira.plf
M356_LDSCRIPT := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_seira.lcf
M356_MAP := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_seira.map

M356_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/npc/d_a_npc_seira/d_a_npc_seira.cpp \

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

M356_LIBS := \

M356_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M356_TARGET): $(M356_O_FILES) $(M356_LIBS)
	@echo [356] creating $(M356_TARGET)
	@echo $(M356_LIBS) $(M356_O_FILES) > build/M356_ofiles
	@python3 tools/lcf.py rel 356 --output $(M356_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M356_LDFLAGS) -o $(M356_TARGET) @build/M356_ofiles

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


