#
# Generated By: dol2asm
#

M288_TARGET := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_bou.plf
M288_LDSCRIPT := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_bou.lcf
M288_MAP := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_bou.map

M288_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/npc/d_a_npc_bou/d_a_npc_bou.cpp \

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

M288_LIBS := \

M288_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M288_TARGET): $(M288_O_FILES) $(M288_LIBS)
	@echo [288] creating $(M288_TARGET)
	@echo $(M288_LIBS) $(M288_O_FILES) > build/M288_ofiles
	@python3 tools/lcf.py rel 288 --output $(M288_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M288_LDFLAGS) -o $(M288_TARGET) @build/M288_ofiles

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


