#
# Generated By: dol2asm
#

M375_TARGET := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_tr.plf
M375_LDSCRIPT := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_tr.lcf
M375_MAP := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_tr.map

M375_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/npc/d_a_npc_tr/d_a_npc_tr.cpp \

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

M375_LIBS := \

M375_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M375_TARGET): $(M375_O_FILES) $(M375_LIBS)
	@echo [375] creating $(M375_TARGET)
	@echo $(M375_LIBS) $(M375_O_FILES) > build/M375_ofiles
	@python3 tools/lcf.py rel 375 --output $(M375_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M375_LDFLAGS) -o $(M375_TARGET) @build/M375_ofiles

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


