#
# Generated By: dol2asm
#

M589_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_pdoor.plf
M589_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_pdoor.lcf
M589_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_pdoor.map

M589_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/obj/d_a_obj_pdoor/unknown_translation_unit_bss.cpp \
	rel/d/a/obj/d_a_obj_pdoor/d_a_obj_pdoor.cpp \

M589_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/obj/d_a_obj_pdoor/unknown_translation_unit_bss.o \
	$(BUILD_DIR)/rel/d/a/obj/d_a_obj_pdoor/d_a_obj_pdoor.o \

M589_LIBS := \

M589_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M589_TARGET): $(M589_O_FILES) $(M589_LIBS)
	@echo [589] creating $(M589_TARGET)
	@echo $(M589_LIBS) $(M589_O_FILES) > build/M589_ofiles
	@python3 tools/lcf.py rel 589 --output $(M589_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M589_LDFLAGS) -o $(M589_TARGET) @build/M589_ofiles

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


