Makefile to shared library