#
# Generated By: dol2asm
#

M286_TARGET := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_bans.plf
M286_LDSCRIPT := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_bans.lcf
M286_MAP := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_bans.map

M286_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/npc/d_a_npc_bans/d_a_npc_bans.cpp \

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

M286_LIBS := \

M286_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M286_TARGET): $(M286_O_FILES) $(M286_LIBS)
	@echo [286] creating $(M286_TARGET)
	@echo $(M286_LIBS) $(M286_O_FILES) > build/M286_ofiles
	@python3 tools/lcf.py rel 286 --output $(M286_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M286_LDFLAGS) -o $(M286_TARGET) @build/M286_ofiles

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


