How To Make a Shared Library

For ELF,

$ gcc -fPIC -c *.c
$ gcc -shared -Wl,-soname, -o *.o

For a.out, get tools-n.nn.tar.gz from It comes with
documentation that will tell you what to do. Note that a.out shared
libraries are a very tricky business. Consider upgrading your
libraries to ELF shared libraries. See the ELF HOWTO, at
Suggest a Site