#
# Generated By: dol2asm
#

M314_TARGET := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_guard.plf
M314_LDSCRIPT := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_guard.lcf
M314_MAP := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_guard.map

M314_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/npc/d_a_npc_guard/d_a_npc_guard.cpp \

M314_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/npc/d_a_npc_guard/d_a_npc_guard.o \

M314_LIBS := \

M314_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M314_TARGET): $(M314_O_FILES) $(M314_LIBS)
	@echo [314] creating $(M314_TARGET)
	@echo $(M314_LIBS) $(M314_O_FILES) > build/M314_ofiles
	@python3 tools/lcf.py rel 314 --output $(M314_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M314_LDFLAGS) -o $(M314_TARGET) @build/M314_ofiles

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


