#
# Generated By: dol2asm
#

M337_TARGET := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_moi.plf
M337_LDSCRIPT := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_moi.lcf
M337_MAP := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_moi.map

M337_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/npc/d_a_npc_moi/d_a_npc_moi.cpp \

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

M337_LIBS := \

M337_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M337_TARGET): $(M337_O_FILES) $(M337_LIBS)
	@echo [337] creating $(M337_TARGET)
	@echo $(M337_LIBS) $(M337_O_FILES) > build/M337_ofiles
	@python3 tools/lcf.py rel 337 --output $(M337_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M337_LDFLAGS) -o $(M337_TARGET) @build/M337_ofiles

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


