#
# Generated By: dol2asm
#

M317_TARGET := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_henna0.plf
M317_LDSCRIPT := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_henna0.lcf
M317_MAP := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_henna0.map

M317_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/npc/d_a_npc_henna0/d_a_npc_henna0.cpp \

M317_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/npc/d_a_npc_henna0/d_a_npc_henna0.o \

M317_LIBS := \

M317_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M317_TARGET): $(M317_O_FILES) $(M317_LIBS)
	@echo [317] creating $(M317_TARGET)
	@echo $(M317_LIBS) $(M317_O_FILES) > build/M317_ofiles
	@python3 tools/lcf.py rel 317 --output $(M317_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M317_LDFLAGS) -o $(M317_TARGET) @build/M317_ofiles

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


