#
# Generated By: dol2asm
#

M327_TARGET := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_kn.plf
M327_LDSCRIPT := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_kn.lcf
M327_MAP := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_kn.map

M327_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/npc/d_a_npc_kn/d_a_npc_kn.cpp \

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

M327_LIBS := \

M327_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M327_TARGET): $(M327_O_FILES) $(M327_LIBS)
	@echo [327] creating $(M327_TARGET)
	@echo $(M327_LIBS) $(M327_O_FILES) > build/M327_ofiles
	@python3 tools/lcf.py rel 327 --output $(M327_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M327_LDFLAGS) -o $(M327_TARGET) @build/M327_ofiles

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


