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 >
Makefile  |  2002-04-06  |  1KB  |  41 lines

  1. sw.o:      sw.c
  2.     cc -o sw.o -c sw.c
  3. tcp.o:     tcp_time_client.c
  4.     cc -o tcp.o -c tcp_time_client.c
  5. udp37.o:   udp_time_client.c
  6.     cc -o udp.o -c udp_time_client.c
  7. tcp37.o:   tcp_port37_client.c
  8.     cc -o tcp37.o -c tcp_port37_client.c
  9. t_ping.o: t_ping.c
  10.     cc -o t_ping.o -c t_ping.c
  11. #
  12. #    nistime will contact the chosen server using the
  13. #    daytime protocol on tcp/ip port 13
  14. #
  15. nistime:  tcp.o  sw.o
  16.     cc -o nistime tcp.o sw.o
  17. #
  18. #    the following programs will contact the chosen server
  19. #    using the time protocol on udp/ip port 37 or tcp/ip port
  20. #    37, respectively. The format of the response is the same
  21. #    in either case -- only the communication protocol is
  22. #    different.
  23. #
  24. #    all of the NIST servers will support this protocol, but
  25. #    it is not robust and is not recommended.
  26. #
  27. nistime_udp37: udp37.o sw.o
  28.     cc -o nistime_udp37 udp.o sw.o
  29. nistime_tcp37: tcp37.o sw.o
  30.     cc -o nistime_tcp37 tcp37.o sw.o
  31. #
  32. #    the following program will contact the chosen server
  33. #    using the icmp ping protocol, which can be used to
  34. #    estimate the network delay between the server and the
  35. #    client.
  36. #    this program will require system privileges on many
  37. #    systems, since it uses a raw socket
  38. #
  39. t_ping:  t_ping.o sw.o
  40.     cc -o t_ping t_ping.o sw.o
  41.