[make] build static lib for ref