#
# Generated By: dol2asm
#

M392_TARGET := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_zrz.plf
M392_LDSCRIPT := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_zrz.lcf
M392_MAP := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_zrz.map

M392_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/npc/d_a_npc_zrz/d_a_npc_zrz.cpp \

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

M392_LIBS := \

M392_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M392_TARGET): $(M392_O_FILES) $(M392_LIBS)
	@echo [392] creating $(M392_TARGET)
	@echo $(M392_LIBS) $(M392_O_FILES) > build/M392_ofiles
	@python3 tools/lcf.py rel 392 --output $(M392_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M392_LDFLAGS) -o $(M392_TARGET) @build/M392_ofiles

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


