#
# Generated By: dol2asm
#

M388_TARGET := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_zelRo.plf
M388_LDSCRIPT := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_zelRo.lcf
M388_MAP := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_zelRo.map

M388_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/npc/d_a_npc_zelRo/d_a_npc_zelRo.cpp \

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

M388_LIBS := \

M388_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M388_TARGET): $(M388_O_FILES) $(M388_LIBS)
	@echo [388] creating $(M388_TARGET)
	@echo $(M388_LIBS) $(M388_O_FILES) > build/M388_ofiles
	@python3 tools/lcf.py rel 388 --output $(M388_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M388_LDFLAGS) -o $(M388_TARGET) @build/M388_ofiles

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


