modified makefile to generate the graph