#
# Generated By: dol2asm
#

M361_TARGET := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_shoe.plf
M361_LDSCRIPT := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_shoe.lcf
M361_MAP := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_shoe.map

M361_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/npc/d_a_npc_shoe/d_a_npc_shoe.cpp \

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

M361_LIBS := \

M361_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M361_TARGET): $(M361_O_FILES) $(M361_LIBS)
	@echo [361] creating $(M361_TARGET)
	@echo $(M361_LIBS) $(M361_O_FILES) > build/M361_ofiles
	@python3 tools/lcf.py rel 361 --output $(M361_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M361_LDFLAGS) -o $(M361_TARGET) @build/M361_ofiles

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


