http://www.cprogramming.com/tutorial/shared-libraries-linux-gcc.html
Basically, 2 steps: 1) make the lib. 2) put the lib in /usr/lib and ldconfig (update the loader config).
That's it.