modify makefile for system upgrade