# # Makefile for TDC561 for (Solaris) examples # Ehab Al-Shaer, 19 Sep 1998 # You may have to edit INCS and LIBS to point to and include the correct # 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= connectTCP.o connectsock.o errexit.o DISTRIB = TCPecho.c connectTCP.c connectsock.c errexit.c CFLAGS = -W -pedantic -ansi $(INCS) $(OPTFLAGS) .SUFFIXES: .c all: TCPecho .c.o: $(CXX) $(CFLAGS) -c $< TCPecho: TCPecho.o $(OBJECTS) $(CXX) $(CFLAGS) TCPecho.o $(OBJECTS) \ $(LIBS) -o TCPecho clean: rm *.o core TCPecho