#
# Generated By: dol2asm
#

M357_TARGET := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_seira2.plf
M357_LDSCRIPT := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_seira2.lcf
M357_MAP := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_seira2.map

M357_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/npc/d_a_npc_seira2/d_a_npc_seira2.cpp \

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

M357_LIBS := \

M357_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M357_TARGET): $(M357_O_FILES) $(M357_LIBS)
	@echo [357] creating $(M357_TARGET)
	@echo $(M357_LIBS) $(M357_O_FILES) > build/M357_ofiles
	@python3 tools/lcf.py rel 357 --output $(M357_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M357_LDFLAGS) -o $(M357_TARGET) @build/M357_ofiles

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


