# Simple makefile for the TCP based echo server and echo client all: server client server: TCPEchoServer.o DieWithError.o HandleTCPClient.o cc -o server TCPEchoServer.o DieWithError.o HandleTCPClient.o client: TCPEchoClient.o DieWithError.o cc -o client TCPEchoClient.o DieWithError.o TCPEchoServer.o: TCPEchoServer.c cc -c -o TCPEchoServer.o TCPEchoServer.c TCPEchoClient.o: TCPEchoClient.c cc -c -o TCPEchoClient.o TCPEchoClient.c DieWithError.o: DieWithError.c cc -c -o DieWithError.o DieWithError.c HandleTCPClient.o: HandleTCPClient.c cc -c -o HandleTCPClient.o HandleTCPClient.c #clean: # rm -f core *.o #realclean: # rm -f core *.o client server