#
# Generated By: dol2asm
#

M566_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_magLiftRot.plf
M566_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_magLiftRot.lcf
M566_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_magLiftRot.map

M566_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/obj/d_a_obj_magLiftRot/d_a_obj_magLiftRot.cpp \

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

M566_LIBS := \

M566_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M566_TARGET): $(M566_O_FILES) $(M566_LIBS)
	@echo [566] creating $(M566_TARGET)
	@echo $(M566_LIBS) $(M566_O_FILES) > build/M566_ofiles
	@python3 tools/lcf.py rel 566 --output $(M566_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M566_LDFLAGS) -o $(M566_TARGET) @build/M566_ofiles

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


