[makefile] fixed the static lib build which was wrong