#
# Generated By: dol2asm
#

M364_TARGET := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_sola.plf
M364_LDSCRIPT := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_sola.lcf
M364_MAP := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_sola.map

M364_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/npc/d_a_npc_sola/d_a_npc_sola.cpp \

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

M364_LIBS := \

M364_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M364_TARGET): $(M364_O_FILES) $(M364_LIBS)
	@echo [364] creating $(M364_TARGET)
	@echo $(M364_LIBS) $(M364_O_FILES) > build/M364_ofiles
	@python3 tools/lcf.py rel 364 --output $(M364_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M364_LDFLAGS) -o $(M364_TARGET) @build/M364_ofiles

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


