#
# Generated By: dol2asm
#

M325_TARGET := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_kasi_mich.plf
M325_LDSCRIPT := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_kasi_mich.lcf
M325_MAP := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_kasi_mich.map

M325_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/npc/d_a_npc_kasi_mich/d_a_npc_kasi_mich.cpp \

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

M325_LIBS := \

M325_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M325_TARGET): $(M325_O_FILES) $(M325_LIBS)
	@echo [325] creating $(M325_TARGET)
	@echo $(M325_LIBS) $(M325_O_FILES) > build/M325_ofiles
	@python3 tools/lcf.py rel 325 --output $(M325_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M325_LDFLAGS) -o $(M325_TARGET) @build/M325_ofiles

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


