#
# Generated By: dol2asm
#

M362_TARGET := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_shop0.plf
M362_LDSCRIPT := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_shop0.lcf
M362_MAP := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_shop0.map

M362_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/npc/d_a_npc_shop0/d_a_npc_shop0.cpp \

M362_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/npc/d_a_npc_shop0/d_a_npc_shop0.o \

M362_LIBS := \

M362_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M362_TARGET): $(M362_O_FILES) $(M362_LIBS)
	@echo [362] creating $(M362_TARGET)
	@echo $(M362_LIBS) $(M362_O_FILES) > build/M362_ofiles
	@python3 tools/lcf.py rel 362 --output $(M362_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M362_LDFLAGS) -o $(M362_TARGET) @build/M362_ofiles

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


