#
# Generated By: dol2asm
#

M289_TARGET := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_bouS.plf
M289_LDSCRIPT := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_bouS.lcf
M289_MAP := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_bouS.map

M289_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/npc/d_a_npc_bouS/d_a_npc_bouS.cpp \

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

M289_LIBS := \

M289_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M289_TARGET): $(M289_O_FILES) $(M289_LIBS)
	@echo [289] creating $(M289_TARGET)
	@echo $(M289_LIBS) $(M289_O_FILES) > build/M289_ofiles
	@python3 tools/lcf.py rel 289 --output $(M289_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M289_LDFLAGS) -o $(M289_TARGET) @build/M289_ofiles

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


