#
# Generated By: dol2asm
#

M372_TARGET := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_tkj2.plf
M372_LDSCRIPT := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_tkj2.lcf
M372_MAP := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_tkj2.map

M372_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/npc/d_a_npc_tkj2/d_a_npc_tkj2.cpp \

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

M372_LIBS := \

M372_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M372_TARGET): $(M372_O_FILES) $(M372_LIBS)
	@echo [372] creating $(M372_TARGET)
	@echo $(M372_LIBS) $(M372_O_FILES) > build/M372_ofiles
	@python3 tools/lcf.py rel 372 --output $(M372_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M372_LDFLAGS) -o $(M372_TARGET) @build/M372_ofiles

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


