#
# Generated By: dol2asm
#

M295_TARGET := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_clerkt.plf
M295_LDSCRIPT := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_clerkt.lcf
M295_MAP := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_clerkt.map

M295_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/npc/d_a_npc_clerkt/d_a_npc_clerkt.cpp \

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

M295_LIBS := \

M295_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M295_TARGET): $(M295_O_FILES) $(M295_LIBS)
	@echo [295] creating $(M295_TARGET)
	@echo $(M295_LIBS) $(M295_O_FILES) > build/M295_ofiles
	@python3 tools/lcf.py rel 295 --output $(M295_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M295_LDFLAGS) -o $(M295_TARGET) @build/M295_ofiles

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


