#
# Generated By: dol2asm
#

M323_TARGET := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_kasi_hana.plf
M323_LDSCRIPT := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_kasi_hana.lcf
M323_MAP := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_kasi_hana.map

M323_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/npc/d_a_npc_kasi_hana/d_a_npc_kasi_hana.cpp \

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

M323_LIBS := \

M323_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M323_TARGET): $(M323_O_FILES) $(M323_LIBS)
	@echo [323] creating $(M323_TARGET)
	@echo $(M323_LIBS) $(M323_O_FILES) > build/M323_ofiles
	@python3 tools/lcf.py rel 323 --output $(M323_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M323_LDFLAGS) -o $(M323_TARGET) @build/M323_ofiles

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


