updated the makefiles for each directory