#
# Generated By: dol2asm
#

M582_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_ndoor.plf
M582_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_ndoor.lcf
M582_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_ndoor.map

M582_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/obj/d_a_obj_ndoor/d_a_obj_ndoor.cpp \

M582_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/obj/d_a_obj_ndoor/d_a_obj_ndoor.o \

M582_LIBS := \

M582_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M582_TARGET): $(M582_O_FILES) $(M582_LIBS)
	@echo [582] creating $(M582_TARGET)
	@echo $(M582_LIBS) $(M582_O_FILES) > build/M582_ofiles
	@python3 tools/lcf.py rel 582 --output $(M582_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M582_LDFLAGS) -o $(M582_TARGET) @build/M582_ofiles

$(BUILD_DIR)/rel/d/a/obj/d_a_obj_ndoor/%.o: rel/d/a/obj/d_a_obj_ndoor/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_ndoor/%.d
	@echo [582] building $@
	@mkdir -p $(@D)
	@$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp
	@$(CC) $(CFLAGS) $(M582_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
M582_D_FILES := $(M582_O_FILES:.o=.d)
$(M582_D_FILES):
include $(wildcard $(M582_D_FILES))
endif


