# Makefile for threaded tcp chat server # This rule describes how to build a .o file from a .c file # -Wall tells gcc to print all warnings! .c.o: gcc -c -Wall $< # we need the Posix threads library LIBS=-lpthread -lsocket -lnsl server: server.o gcc -g -o server server.o ${LIBS}