home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume25 / sockdemo / Makefile < prev    next >
Encoding:
Makefile  |  1991-12-12  |  1.2 KB  |  63 lines

  1. # Makefile for socket demo collection
  2. #(C) 1991 Blair P. Houghton, All Rights Reserved, copying and
  3. #distribution permitted with copyright intact.
  4.  
  5. # gcc screws up gethostbyname() with my library; try it on yours
  6. #CC = gcc -ansi -pedantic -Wall
  7.  
  8. # debugging is more fun if the symbols and trace-hooks are intact...
  9. CFLAGS = -g
  10.  
  11. # shar'ring is rather specific to the sort of shar(1local) one possesses...
  12. SHAR = /usr/local/bin/xshar -vsMDc
  13. #SHAR = shar
  14.  
  15. all: disock isock sock
  16.  
  17.  
  18. # unix-local-connection example
  19. sock: sockl sockt
  20.  
  21. sockl: sockl.c sockl.h
  22.     $(CC) $(CFLAGS) -o sockl sockl.c
  23.  
  24. sockt: sockt.c sockl.h
  25.     $(CC) $(CFLAGS) -o sockt sockt.c
  26.  
  27. sockl.h:
  28.  
  29.  
  30. # internet-connection example
  31. isock: isockl isockt
  32.  
  33. isockl: isockl.c
  34.     $(CC) $(CFLAGS) -o isockl isockl.c
  35.  
  36. isockt: isockt.c
  37.     $(CC) $(CFLAGS) -o isockt isockt.c
  38.  
  39.  
  40. # internet-connection example using disconnected transmittal
  41. disock: disockl disockt
  42.  
  43. disockl: disockl.c
  44.     $(CC) $(CFLAGS) -o disockl disockl.c
  45.  
  46. disockt: disockt.c
  47.     $(CC) $(CFLAGS) -o disockt disockt.c
  48.  
  49.  
  50. man: sockl.1
  51.     nroff -man sockl.nroff-man > sockl.1
  52. sockl.1:
  53.  
  54.  
  55. shar:
  56.     $(SHAR) README sockl.nroff-man Makefile        \
  57. sockl.c sockt.c isockl.c isockt.c disockl.c disockt.c    \
  58. sockl.h > sockl.shar
  59.  
  60.  
  61. clean:
  62.     rm -f sockl sockt isockl isockt disockl disockt sockl.1
  63.