Cristiano Ronaldo signalled an ambition to finish his career at Real Madrid after signing a new deal that ties him to the club for the next five years.