Changed socket makefile to read mode