Makefile: make it possible to avoid building static/shared library