#
# Generated By: dol2asm
#

M326_TARGET := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_kdk.plf
M326_LDSCRIPT := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_kdk.lcf
M326_MAP := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_kdk.map

M326_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/npc/d_a_npc_kdk/d_a_npc_kdk.cpp \

M326_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/npc/d_a_npc_kdk/d_a_npc_kdk.o \

M326_LIBS := \

M326_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M326_TARGET): $(M326_O_FILES) $(M326_LIBS)
	@echo [326] creating $(M326_TARGET)
	@echo $(M326_LIBS) $(M326_O_FILES) > build/M326_ofiles
	@python3 tools/lcf.py rel 326 --output $(M326_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M326_LDFLAGS) -o $(M326_TARGET) @build/M326_ofiles

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


