add makefile for static lib