#
# Generated By: dol2asm
#

M377_TARGET := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_worm.plf
M377_LDSCRIPT := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_worm.lcf
M377_MAP := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_worm.map

M377_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/npc/d_a_npc_worm/d_a_npc_worm.cpp \

M377_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/npc/d_a_npc_worm/d_a_npc_worm.o \

M377_LIBS := \

M377_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M377_TARGET): $(M377_O_FILES) $(M377_LIBS)
	@echo [377] creating $(M377_TARGET)
	@echo $(M377_LIBS) $(M377_O_FILES) > build/M377_ofiles
	@python3 tools/lcf.py rel 377 --output $(M377_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M377_LDFLAGS) -o $(M377_TARGET) @build/M377_ofiles

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


