#
# Generated By: dol2asm
#

M294_TARGET := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_clerkb.plf
M294_LDSCRIPT := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_clerkb.lcf
M294_MAP := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_clerkb.map

M294_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/npc/d_a_npc_clerkb/d_a_npc_clerkb.cpp \

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

M294_LIBS := \

M294_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M294_TARGET): $(M294_O_FILES) $(M294_LIBS)
	@echo [294] creating $(M294_TARGET)
	@echo $(M294_LIBS) $(M294_O_FILES) > build/M294_ofiles
	@python3 tools/lcf.py rel 294 --output $(M294_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M294_LDFLAGS) -o $(M294_TARGET) @build/M294_ofiles

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


