Compiling problem

I'm trying to install the jed text editor on a SunOS 5.10 box. It depends on the s-lang library, which I installed to ~/lib. I'm trying to install jed to ~/jed (it's a box @ my university, so I don't have rights to install globally), but when I run make I get this error:

It looks like it can't find the s-lang library, but my PATH is:

So it shouldn't have any trouble finding it, I don't think, but it's been awhile since I've used *nix. slang.h is located in ~/lib/include

Try adding the path to the library to your LD_LIBRARY_PATH.