# environment variables setup CC = gcc -ansi OPENWINHOME = /usr/openwin XIL_INSTALL_PT = /opt/SUNWits/Graphics-sw/xil MOTIFHOME = /opt/local/X11 SOLARISHOME = /usr/dt RM = rm -rf # libraries and includes CFLAGS = $(NORMCFLAGS) LIBS = -lsocket -lnsl # Source package description PROGS = udpServer0 udpClient0 tcpServer0 tcpClient0 UDPServer1 UDPClient1 TCPClient1 TCPServer1 select0 select1 all: $(PROGS) udpServer0: udpServer0.o $(CC) $(CFLAGS) -o udpServer0 udpServer0.c $(LIBS) udpClient0 : udpClient0.o $(CC) $(CFLAGS) -o udpClient0 udpClient0.c $(LIBS) tcpServer0 : tcpServer0.o $(CC) $(CFLAGS) -o tcpServer0 tcpServer0.c $(LIBS) tcpClient0 : tcpClient0.o $(CC) $(CFLAGS) -o tcpClient0 tcpClient0.c $(LIBS) UDPServer1 : UDPServer1.o $(CC) $(CFLAGS) -o UDPServer1 UDPServer1.c $(LIBS) UDPClient1 : UDPClient1.o $(CC) $(CFLAGS) -o UDPClient1 UDPClient1.c $(LIBS) TCPServer1 : TCPServer1.o $(CC) $(CFLAGS) -o TCPServer1 TCPServer1.c $(LIBS) TCPClient1: TCPClient1.o $(CC) $(CFLAGS) -o TCPClient1 TCPClient1.c $(LIBS) select0 : select0.o $(CC) $(CFLAGS) -o select0 select0.c $(LIBS) select1 : select1.o $(CC) $(CFLAGS) -o select1 select1.c $(LIBS) clean:; $(RM) $(PROGS) *.ln *.BAK *.bak *.o core errs ,* *~ *.a .emacs_* tags \ TAGS make.log MakeOut "#"*