#
# Generated By: dol2asm
#

M284_TARGET := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_ash.plf
M284_LDSCRIPT := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_ash.lcf
M284_MAP := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_ash.map

M284_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/npc/d_a_npc_ash/d_a_npc_ash.cpp \

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

M284_LIBS := \

M284_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M284_TARGET): $(M284_O_FILES) $(M284_LIBS)
	@echo [284] creating $(M284_TARGET)
	@echo $(M284_LIBS) $(M284_O_FILES) > build/M284_ofiles
	@python3 tools/lcf.py rel 284 --output $(M284_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M284_LDFLAGS) -o $(M284_TARGET) @build/M284_ofiles

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


