Modify the Makefile for static to use prerequisites, remove build products