#
# Generated By: dol2asm
#

M283_TARGET := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_aru.plf
M283_LDSCRIPT := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_aru.lcf
M283_MAP := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_aru.map

M283_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/npc/d_a_npc_aru/d_a_npc_aru.cpp \

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

M283_LIBS := \

M283_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M283_TARGET): $(M283_O_FILES) $(M283_LIBS)
	@echo [283] creating $(M283_TARGET)
	@echo $(M283_LIBS) $(M283_O_FILES) > build/M283_ofiles
	@python3 tools/lcf.py rel 283 --output $(M283_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M283_LDFLAGS) -o $(M283_TARGET) @build/M283_ofiles

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


