#
# Generated By: dol2asm
#

M622_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_smgdoor.plf
M622_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_smgdoor.lcf
M622_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_smgdoor.map

M622_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/obj/d_a_obj_smgdoor/unknown_translation_unit_bss.cpp \
	rel/d/a/obj/d_a_obj_smgdoor/d_a_obj_smgdoor.cpp \

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

M622_LIBS := \

M622_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M622_TARGET): $(M622_O_FILES) $(M622_LIBS)
	@echo [622] creating $(M622_TARGET)
	@echo $(M622_LIBS) $(M622_O_FILES) > build/M622_ofiles
	@python3 tools/lcf.py rel 622 --output $(M622_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M622_LDFLAGS) -o $(M622_TARGET) @build/M622_ofiles

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


