#
# Generated By: dol2asm
#

M383_TARGET := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_ykm.plf
M383_LDSCRIPT := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_ykm.lcf
M383_MAP := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_ykm.map

M383_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/npc/d_a_npc_ykm/d_a_npc_ykm.cpp \

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

M383_LIBS := \

M383_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M383_TARGET): $(M383_O_FILES) $(M383_LIBS)
	@echo [383] creating $(M383_TARGET)
	@echo $(M383_LIBS) $(M383_O_FILES) > build/M383_ofiles
	@python3 tools/lcf.py rel 383 --output $(M383_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M383_LDFLAGS) -o $(M383_TARGET) @build/M383_ofiles

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


