makefile modified for the new reset function