#
# Generated By: dol2asm
#

M79_TARGET := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_besu.plf
M79_LDSCRIPT := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_besu.lcf
M79_MAP := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_besu.map

M79_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/npc/d_a_npc_besu/d_a_npc_besu.cpp \

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

M79_LIBS := \

M79_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M79_TARGET): $(M79_O_FILES) $(M79_LIBS)
	@echo [ 79] creating $(M79_TARGET)
	@echo $(M79_LIBS) $(M79_O_FILES) > build/M79_ofiles
	@python3 tools/lcf.py rel 79 --output $(M79_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M79_LDFLAGS) -o $(M79_TARGET) @build/M79_ofiles

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


