#
# Generated By: dol2asm
#

M310_TARGET := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_gro.plf
M310_LDSCRIPT := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_gro.lcf
M310_MAP := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_gro.map

M310_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/npc/d_a_npc_gro/d_a_npc_gro.cpp \

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

M310_LIBS := \

M310_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M310_TARGET): $(M310_O_FILES) $(M310_LIBS)
	@echo [310] creating $(M310_TARGET)
	@echo $(M310_LIBS) $(M310_O_FILES) > build/M310_ofiles
	@python3 tools/lcf.py rel 310 --output $(M310_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M310_LDFLAGS) -o $(M310_TARGET) @build/M310_ofiles

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


