#
# Generated By: dol2asm
#

M348_TARGET := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_pouya.plf
M348_LDSCRIPT := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_pouya.lcf
M348_MAP := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_pouya.map

M348_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/npc/d_a_npc_pouya/d_a_npc_pouya.cpp \

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

M348_LIBS := \

M348_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M348_TARGET): $(M348_O_FILES) $(M348_LIBS)
	@echo [348] creating $(M348_TARGET)
	@echo $(M348_LIBS) $(M348_O_FILES) > build/M348_ofiles
	@python3 tools/lcf.py rel 348 --output $(M348_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M348_LDFLAGS) -o $(M348_TARGET) @build/M348_ofiles

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


