#
# Generated By: dol2asm
#

M616_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_sekidoor.plf
M616_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_sekidoor.lcf
M616_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_sekidoor.map

M616_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/obj/d_a_obj_sekidoor/d_a_obj_sekidoor.cpp \

M616_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/global_destructor_chain.o \
	$(BUILD_DIR)/rel/d/a/obj/d_a_obj_sekidoor/d_a_obj_sekidoor.o \

M616_LIBS := \

M616_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M616_TARGET): $(M616_O_FILES) $(M616_LIBS)
	@echo [616] creating $(M616_TARGET)
	@echo $(M616_LIBS) $(M616_O_FILES) > build/M616_ofiles
	@python3 tools/lcf.py rel 616 --output $(M616_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M616_LDFLAGS) -o $(M616_TARGET) @build/M616_ofiles

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


