#
# Generated By: dol2asm
#

M285_TARGET := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_ashB.plf
M285_LDSCRIPT := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_ashB.lcf
M285_MAP := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_ashB.map

M285_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/npc/d_a_npc_ashB/d_a_npc_ashB.cpp \

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

M285_LIBS := \

M285_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M285_TARGET): $(M285_O_FILES) $(M285_LIBS)
	@echo [285] creating $(M285_TARGET)
	@echo $(M285_LIBS) $(M285_O_FILES) > build/M285_ofiles
	@python3 tools/lcf.py rel 285 --output $(M285_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M285_LDFLAGS) -o $(M285_TARGET) @build/M285_ofiles

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


