#
# Generated By: dol2asm
#

M352_TARGET := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_saru.plf
M352_LDSCRIPT := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_saru.lcf
M352_MAP := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_saru.map

M352_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/npc/d_a_npc_saru/d_a_npc_saru.cpp \

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

M352_LIBS := \

M352_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M352_TARGET): $(M352_O_FILES) $(M352_LIBS)
	@echo [352] creating $(M352_TARGET)
	@echo $(M352_LIBS) $(M352_O_FILES) > build/M352_ofiles
	@python3 tools/lcf.py rel 352 --output $(M352_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M352_LDFLAGS) -o $(M352_TARGET) @build/M352_ofiles

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


