#
# Generated By: dol2asm
#

M359_TARGET := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_shad.plf
M359_LDSCRIPT := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_shad.lcf
M359_MAP := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_shad.map

M359_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/npc/d_a_npc_shad/d_a_npc_shad.cpp \

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

M359_LIBS := \

M359_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M359_TARGET): $(M359_O_FILES) $(M359_LIBS)
	@echo [359] creating $(M359_TARGET)
	@echo $(M359_LIBS) $(M359_O_FILES) > build/M359_ofiles
	@python3 tools/lcf.py rel 359 --output $(M359_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M359_LDFLAGS) -o $(M359_TARGET) @build/M359_ofiles

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


