#
# Generated By: dol2asm
#

M319_TARGET := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_impal.plf
M319_LDSCRIPT := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_impal.lcf
M319_MAP := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_impal.map

M319_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/npc/d_a_npc_impal/d_a_npc_impal.cpp \

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

M319_LIBS := \

M319_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M319_TARGET): $(M319_O_FILES) $(M319_LIBS)
	@echo [319] creating $(M319_TARGET)
	@echo $(M319_LIBS) $(M319_O_FILES) > build/M319_ofiles
	@python3 tools/lcf.py rel 319 --output $(M319_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M319_LDFLAGS) -o $(M319_TARGET) @build/M319_ofiles

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


