Torture? If it were easy it wouldn't be nearly as much fun...
So no clock signals. SCK is on PORTC.3, which the datasheet says defaults to an input. You'll need to add "SCK_TRIS=0".
One other thing that jumped out at me is that the 16LF877 is only rated for 4MHz and you are using 10MHz according to your defines. Could that also be a source of trouble?
I hope you also took languer's suggestions. I'm pretty sure he's sharper than me...
Best Regards,
Paul
Bookmarks