setting up makefile to work with library