#
# Generated By: dol2asm
#

M320_TARGET := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_inko.plf
M320_LDSCRIPT := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_inko.lcf
M320_MAP := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_inko.map

M320_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/npc/d_a_npc_inko/d_a_npc_inko.cpp \

M320_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/npc/d_a_npc_inko/d_a_npc_inko.o \

M320_LIBS := \

M320_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M320_TARGET): $(M320_O_FILES) $(M320_LIBS)
	@echo [320] creating $(M320_TARGET)
	@echo $(M320_LIBS) $(M320_O_FILES) > build/M320_ofiles
	@python3 tools/lcf.py rel 320 --output $(M320_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M320_LDFLAGS) -o $(M320_TARGET) @build/M320_ofiles

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


