#
# Generated By: dol2asm
#

M82_TARGET := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_henna.plf
M82_LDSCRIPT := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_henna.lcf
M82_MAP := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_henna.map

M82_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/npc/d_a_npc_henna/d_a_npc_henna.cpp \

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

M82_LIBS := \

M82_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M82_TARGET): $(M82_O_FILES) $(M82_LIBS)
	@echo [ 82] creating $(M82_TARGET)
	@echo $(M82_LIBS) $(M82_O_FILES) > build/M82_ofiles
	@python3 tools/lcf.py rel 82 --output $(M82_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M82_LDFLAGS) -o $(M82_TARGET) @build/M82_ofiles

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


