Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
Makefile
Package: linux-socket-program.rar [view]
Upload User: wei_4586
Upload Date: 2008-05-28
Package Size: 18k
Code Size: 2k
Category:
Linux Network
Development Platform:
Unix_Linux
- #
- # 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
- #
- INCLUDE =
- CLNTS = TCPecho TCPdaytime TCPtecho UDPecho UDPtime
- SERVS = TCPdaytimed TCPechod TCPmechod UDPtimed daytimed
- OTHER = superd TCPmtechod
- DEFS =
- CFLAGS = -W -pedantic -ansi -g ${DEFS} ${INCLUDE}
- 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 TCPmtechod.c UDPtimed.c
- daytimed.c superd.c
- SXSRC = passiveTCP.c passiveUDP.c passivesock.c sv_funcs.c
- CXOBJ = connectTCP.o connectUDP.o connectsock.o errexit.o
- SXOBJ = passiveTCP.o passiveUDP.o passivesock.o errexit.o
- PROGS = ${CLNTS} ${SERVS} ${OTHER}
- all: ${PROGS}
- ${CLNTS}: ${CXOBJ}
- ${CC} -o $@ ${CFLAGS} $@.o ${CXOBJ}
- ${SERVS}: ${SXOBJ}
- ${CC} -o $@ ${CFLAGS} $@.o ${SXOBJ}
- superd: ${SXOBJ} superd.o sv_funcs.o
- ${CC} -o $@ ${CFLAGS} $@.o ${SXOBJ} sv_funcs.o
- TCPmtechod: TCPmtechod.o ${SXOBJ}
- ${CC} -o $@ ${CFLAGS} $@.o ${SXOBJ} -lpthread
- clients: ${CLNTS}
- servers: ${SERVS}
- clean: FRC
- rm -f Makefile.bak a.out core errs lint.errs ${PROGS} *.o
- 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}
- ${HDR} ${CSRC} ${CXSRC} ${SSRC} ${SXSRC}:
- co $@
- TCPecho: TCPecho.o
- TCPdaytime: TCPdaytime.o
- TCPtecho: TCPtecho.o
- UDPecho: UDPecho.o
- UDPtime: UDPtime.o
- TCPdaytimed: TCPdaytimed.o
- TCPechod: TCPechod.o
- TCPmechod: TCPmechod.o
- UDPtimed: UDPtimed.o
- daytimed: daytimed.o
- superd: superd.o
- FRC:
- # DO NOT DELETE THIS LINE - maketd DEPENDS ON IT