Makefile fixes: Library build, targets

Changed the build command for the static library to include all objects
and added .PHONY for the targets that do not create files of the same
name.