generate static lib