update Makefile to create lib