signal11/hidapi — pull request #46 by edorfaus (2012-03-18 01:23:43+00:00)
Title: Build a shared library on Linux (libhidapi.so)

It would make things easier both for the users of hidapi (like me) and for distro packagers (who often aren't allowed to bundle a library like this with the program that uses it) if the Linux version of hidapi built a shared library, like the Windows version does.

So, these commits add a target to the Makefile that builds such a shared library (libhidapi.so).

To cater for the two different implementations on Linux, this reuses the variable that the Makefile already uses to decide which of them is used with hidtest, to decide which is built into the library.