Added option for generating shared library makefile