According to FIFA regulations regarding the status and transfer of players, all teams that have contributed to the training and education of the player would also receive a portion of the transfer fee.
Any big-money move for the 32-year-old would not just benefit Real Madrid. There would be many different 'winners' from any such deal. According to official FIFA guidelines, if a player moves clubs during the course of his contract, 5% of the transfer fee is taken and distributed among the teams involved in training the player as junior. The amount given to each club depends on how many years the player spent there between the age of 12 and 23. Each season spent at a club between the ages of 12 and 15 (inclusive) is valued at 5% of the "compensation" (or 0.25% of the overall transfer fee), between the ages of 16 and 23 (inclusive) these figures rise to 10% and 0.5% respectively.
These rules mean that Nacional de Madeira, Sporting Lisbon and Manchester United would all benefit from a potential deal. Nacional would be entitled to 0.25% of the fee, Sporting 2.25% and United 2.5%.
These figures may seem small, however, should Real Madrid hold out for the £350million that they are allegedly demanding for the former Manchester United man, that could see around £18million split between the 3 sides, will Nacional receiving £875,000, Sporting £7,875,000 and United £8,750,000.