#
# Generated By: dol2asm
#

M315_TARGET := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_gwolf.plf
M315_LDSCRIPT := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_gwolf.lcf
M315_MAP := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_gwolf.map

M315_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/npc/d_a_npc_gwolf/d_a_npc_gwolf.cpp \

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

M315_LIBS := \

M315_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M315_TARGET): $(M315_O_FILES) $(M315_LIBS)
	@echo [315] creating $(M315_TARGET)
	@echo $(M315_LIBS) $(M315_O_FILES) > build/M315_ofiles
	@python3 tools/lcf.py rel 315 --output $(M315_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M315_LDFLAGS) -o $(M315_TARGET) @build/M315_ofiles

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


