here we go with my compiling notes. I don't know whether this is the most elegant way, but surely it worked for me.
First you have to install kernel source, headers and kbuild:
apt-get install kernel-source-22.214.171.124-vanilla-pluto-1-686
apt-get install kernel-headers-126.96.36.199-vanilla-pluto-1-686 188.8.131.52
apt-get install kernel-kbuild-2.6-3
tar -xjvf kernel-source-184.108.40.206-vanilla-pluto-1-686.tar.bz2
When you are done, do this:
ls -la /lib/modules/220.127.116.11-vanilla-pluto-1-686/
and check where "build" symlink is pointing to. In my box it was pointing to /home/src/linux-18.104.22.168, that is wrong. If this is also your case (and probably it is) correct the symlink and make it pointing to the newly installed kernel source directory:
ln -s /usr/src/kernel-source-22.214.171.124-vanilla-pluto-1-686 /lib/modules/126.96.36.199-vanilla-pluto-1-686/build
Then (always from within /usr/src) do the following:
cp -a kernel-source-188.8.131.52-vanilla-pluto-1-686/scripts kernel-kbuild-2.6-4/
ln -s kernel-source-184.108.40.206-vanilla-pluto-1-686/include/ kernel-kbuild-2.6-4
I don't know if this is strictly needed, but before compiling I made also a "make menuconfig" from within the kernel source dir, just to be sure that a valid .config was there.
Now you are set up and ready to compile your modules.
Go to your pwc source directory and do the following:
KDIR=/usr/src/kernel-headers-220.127.116.11-vanilla-pluto-1-686 make -f Makefile -e
In my case this worked at first shot.
I compiled also another module (ndiswrapper), and in that case the previous command line gave me some compile errors. Issuing a normal "make" did anyway the trick.
So depending on particular Makefile you may have to choose different compiling command.
That's all, folks
I hope that these note may help you.
If not, let me know .. if you feel that it may help I could get pwc source and try to compile it on my box.