# this is for a test chat-client/chat-server program G = -g ## debug option CC = gcc ## compiler SRC = echo-client.c echo-server.c EXE = echo-client echo-server LIB = tcplib.o CLNTO = echo-client.o $(LIB) SERVO = echo-server.o $(LIB) LLIB = #-lsocket -lnsl -lpthread all: $(EXE) %.o: %.c $(CC) $G -c $< echo-client: $(CLNTO) $(CC) -o echo-client $(CLNTO) $(LLIB) echo-server: $(SERVO) $(CC) -o echo-server $(SERVO) $(LLIB) clean: /bin/rm -f core *.o $(EXE) *~