updated Makefile to work properly