The library files, by themselves, are not sufficient. You also need the header file(s) which define the API functions' correct argument syntax (so your compilation can be properly checked), and (usually) the vendor's API documentation.
Then all you need to do is put the
so file(s) in either a standard location (e.g.,
/lib or
/lib64) or specify the library location to the linker with a
-l or
-L. If you're using
gcc you could also add the directory in which the
so files are located to the
LIBRARY_PATH environment variable. See
man gcc or
info gcc for more details about the compiler options.
About distribution: You first will need a license from the API developer permitting you to distribute, and then either distribute a statically-linked binary, or (if you're doing a FOSS development project) distribute your source code from a source code repository. (
www.sourceforge.net is a fairly standard choice for code development and distribution.)