updatemakefile
added clear function