#
# Generated By: dol2asm
#

M53_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_life_container.plf
M53_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_life_container.lcf
M53_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_life_container.map

M53_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/obj/d_a_obj_life_container/unknown_translation_unit_bss.cpp \
	rel/d/a/obj/d_a_obj_life_container/d_a_obj_life_container.cpp \

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

M53_LIBS := \

M53_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M53_TARGET): $(M53_O_FILES) $(M53_LIBS)
	@echo [ 53] creating $(M53_TARGET)
	@echo $(M53_LIBS) $(M53_O_FILES) > build/M53_ofiles
	@python3 tools/lcf.py rel 53 --output $(M53_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M53_LDFLAGS) -o $(M53_TARGET) @build/M53_ofiles

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


