Hi,
The "build" link should be pointing to another directory, because the 3.7.1 headers are not installed.
Please, install the 3.7.1 headers:
Code:
sudo apt-get install linux-headers-3.7.1-red-ribbon-powerpc64-ps3
Remove the "build" link:
Code:
sudo rm /lib/modules/3.7.1-red-ribbon-powerpc64-ps3/build
and create it again:
Code:
sudo ln -s /usr/src/linux-headers-3.7.1-red-ribbon-powerpc64-ps3 /lib/modules/3.7.1-red-ribbon-powerpc64-ps3/build
Now, You should be able to build the application

.
Greetings