updated Makefiles for memread, memwrite, and memcpy