# # Internetworking with TCP/IP, Volume III example code Makefile # # David L Stevens, Internetworking Research Group at Purdue # Tue Sep 17 19:40:42 EST 1991 # CC = gcc #INCS= -I. -I$(RMPDIR)/include INCLUDE = CLNTS = TCPecho TCPdaytime TCPtecho UDPecho UDPtime SERVS = TCPdaytimed TCPechod TCPmechod UDPtimed daytimed OTHER = superd DEFS = CFLAGS = -W -pedantic -ansi -g ${DEFS} ${INCLUDE} LIBS= -lsocket -lnsl -lucb HDR = CSRC = TCPecho.c TCPdaytime.c TCPtecho.c UDPecho.c UDPtime.c CXSRC = connectTCP.c connectUDP.c connectsock.c errexit.c SSRC = TCPdaytimed.c TCPechod.c TCPmechod.c UDPtimed.c daytimed.c superd.c SXSRC = passiveTCP.c passiveUDP.c passivesock.c sv_funcs.c CXOBJ = connectTCP.o connectsock.o errexit.o PROGS = TCPecho all: ${PROGS} TCPecho:${CXOBJ} ${CC} -o $@ ${CFLAGS} $@.o ${CXOBJ} ${LIBS} depend: ${HDR} ${CSRC} ${SSRC} ${TNSRC} FRC maketd -a ${DEFS} ${INCLUDE} ${CSRC} ${SSRC} ${TNSRC} install: all FRC @echo "Your installation instructions here." lint: ${HDR} ${XSRC} ${CSRC} ${SSRC} FRC lint ${DEFS} ${INCLUDE} ${CSRC} ${SSRC} ${CXSRC} ${SXSRC} print: Makefile ${SRC} FRC lpr Makefile ${CSRC} ${SSRC} ${CXSRC} ${SXSRC} spotless: clean FRC rcsclean Makefile ${HDR} ${SRC} tags: ${CSRC} ${SSRC} ${CXSRC} ${SXSRC} ctags ${CSRC} ${SSRC} ${CXSRC} ${SXSRC} TCPecho: TCPecho.o FRC: # DO NOT DELETE THIS LINE - maketd DEPENDS ON IT S=/usr/include/sys I=/usr/include TCPecho.o: $I/stdio.h TCPecho.c # *** Do not add anything here - It will go away. ***