#
# Generated By: dol2asm
#

M378_TARGET := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_wrestler.plf
M378_LDSCRIPT := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_wrestler.lcf
M378_MAP := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_wrestler.map

M378_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/npc/d_a_npc_wrestler/d_a_npc_wrestler.cpp \

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

M378_LIBS := \

M378_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M378_TARGET): $(M378_O_FILES) $(M378_LIBS)
	@echo [378] creating $(M378_TARGET)
	@echo $(M378_LIBS) $(M378_O_FILES) > build/M378_ofiles
	@python3 tools/lcf.py rel 378 --output $(M378_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M378_LDFLAGS) -o $(M378_TARGET) @build/M378_ofiles

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


