updated makefile using implicit rules