add makefile target to build a static library