home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
nisttime.carsoncity.k12.mi.us
/
nisttime.carsoncity.k12.mi.us.tar
/
nisttime.carsoncity.k12.mi.us
/
pub
/
daytime
/
Makefile
< prev
next >
Wrap
Makefile
|
2002-04-06
|
1KB
|
41 lines
sw.o: sw.c
cc -o sw.o -c sw.c
tcp.o: tcp_time_client.c
cc -o tcp.o -c tcp_time_client.c
udp37.o: udp_time_client.c
cc -o udp.o -c udp_time_client.c
tcp37.o: tcp_port37_client.c
cc -o tcp37.o -c tcp_port37_client.c
t_ping.o: t_ping.c
cc -o t_ping.o -c t_ping.c
#
# nistime will contact the chosen server using the
# daytime protocol on tcp/ip port 13
#
nistime: tcp.o sw.o
cc -o nistime tcp.o sw.o
#
# the following programs will contact the chosen server
# using the time protocol on udp/ip port 37 or tcp/ip port
# 37, respectively. The format of the response is the same
# in either case -- only the communication protocol is
# different.
#
# all of the NIST servers will support this protocol, but
# it is not robust and is not recommended.
#
nistime_udp37: udp37.o sw.o
cc -o nistime_udp37 udp.o sw.o
nistime_tcp37: tcp37.o sw.o
cc -o nistime_tcp37 tcp37.o sw.o
#
# the following program will contact the chosen server
# using the icmp ping protocol, which can be used to
# estimate the network delay between the server and the
# client.
# this program will require system privileges on many
# systems, since it uses a raw socket
#
t_ping: t_ping.o sw.o
cc -o t_ping t_ping.o sw.o