#
# Generated By: dol2asm
#

M368_TARGET := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_the.plf
M368_LDSCRIPT := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_the.lcf
M368_MAP := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_the.map

M368_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/npc/d_a_npc_the/d_a_npc_the.cpp \

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

M368_LIBS := \

M368_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M368_TARGET): $(M368_O_FILES) $(M368_LIBS)
	@echo [368] creating $(M368_TARGET)
	@echo $(M368_LIBS) $(M368_O_FILES) > build/M368_ofiles
	@python3 tools/lcf.py rel 368 --output $(M368_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M368_LDFLAGS) -o $(M368_TARGET) @build/M368_ofiles

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


