#
# Generated By: dol2asm
#

M290_TARGET := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_cdn3.plf
M290_LDSCRIPT := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_cdn3.lcf
M290_MAP := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_cdn3.map

M290_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/npc/d_a_npc_cdn3/d_a_npc_cdn3.cpp \

M290_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/npc/d_a_npc_cdn3/d_a_npc_cdn3.o \

M290_LIBS := \

M290_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M290_TARGET): $(M290_O_FILES) $(M290_LIBS)
	@echo [290] creating $(M290_TARGET)
	@echo $(M290_LIBS) $(M290_O_FILES) > build/M290_ofiles
	@python3 tools/lcf.py rel 290 --output $(M290_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M290_LDFLAGS) -o $(M290_TARGET) @build/M290_ofiles

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


