#
# Generated By: dol2asm
#

M316_TARGET := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_hanjo.plf
M316_LDSCRIPT := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_hanjo.lcf
M316_MAP := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_hanjo.map

M316_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/npc/d_a_npc_hanjo/d_a_npc_hanjo.cpp \

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

M316_LIBS := \

M316_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M316_TARGET): $(M316_O_FILES) $(M316_LIBS)
	@echo [316] creating $(M316_TARGET)
	@echo $(M316_LIBS) $(M316_O_FILES) > build/M316_ofiles
	@python3 tools/lcf.py rel 316 --output $(M316_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M316_LDFLAGS) -o $(M316_TARGET) @build/M316_ofiles

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


