updated lib design makefile