# # Ehab Al-Shaer, # You may have to edit INCS and LIBS to point to and include the # information for your system. # CXX=gcc RM= \rm -rf GZIP=gzip TAR=tar cvf INCS= -I. #OPTFLAGS= -DHAVE_CONFIG_H -D_REENTRANT -O4 OPTFLAGS= -g -O4 LIBS= #-lnsl #-lsocket OBJECTS= errexit.o connectUDP.o connectsock.o passiveUDP.o passivesock.o DISTRIB = errexit.c TCPecho.c connectTCP.c connectsock.c passiveTCP.c passivesock.c echoServer-mt.c CFLAGS = #-W -pedantic -ansi $(INCS) $(OPTFLAGS) .SUFFIXES: .c all: UDPchat .c.o: $(CXX) $(CFLAGS) -c $< UDPtimed: UDPtimed.o $(OBJECTS) $(CXX) $(CFLAGS) UDPtimed.o $(OBJECTS) \ -o UDPtimed UDPtime: UDPtime.o $(OBJECTS) $(CXX) $(CFLAGS) UDPtime.o $(OBJECTS) \ -o UDPtime UDPchat: UDPchat.o $(OBJECTS) $(CXX) $(CFLAGS) UDPchat.o $(OBJECTS) \ -o UDPchat clean: rm *.o UDPchat