#
# Generated By: dol2asm
#

M296_TARGET := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_coach.plf
M296_LDSCRIPT := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_coach.lcf
M296_MAP := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_coach.map

M296_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/npc/d_a_npc_coach/d_a_npc_coach.cpp \

M296_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/npc/d_a_npc_coach/d_a_npc_coach.o \

M296_LIBS := \

M296_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M296_TARGET): $(M296_O_FILES) $(M296_LIBS)
	@echo [296] creating $(M296_TARGET)
	@echo $(M296_LIBS) $(M296_O_FILES) > build/M296_ofiles
	@python3 tools/lcf.py rel 296 --output $(M296_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M296_LDFLAGS) -o $(M296_TARGET) @build/M296_ofiles

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


