home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / misc / volume26 / feedpipe / part01 / Makefile < prev    next >
Encoding:
Makefile  |  1991-12-14  |  1.6 KB  |  68 lines

  1. # Makefile for feedpipe
  2. # Written by D'Arcy J.M. Cain
  3. #
  4.  
  5. # If you put getline and friends in your local library as I do then replace
  6. # cain below with the library name.  If not then remove the comment character
  7. # in the OBJECTS list to include xgetline.o there.
  8. LDLIBS =    -lcain
  9. OBJECTS =    feedpipe.o readcfg.o # xgetline.o
  10.  
  11. NAME =        feedpipe
  12. CFLAGS=        -O -Wall -ansi -pedantic -Wcast-qual -Wid-clash-31 \
  13.             -Wshadow -Wpointer-arith -Wwrite-strings -g
  14. BIN =        /usr/lbin
  15. DIST =        README feedpipe.1 feedpipe.c readcfg.c getline.c Makefile feedpipe.h
  16. feedpipe:    $(OBJECTS)
  17.  
  18. clean:
  19.     rm  -f *.o *.obj core test
  20.  
  21. clobber:    clean
  22.     rm -f feedpipe $(NAME).0? $(NAME).gen
  23.  
  24. link:
  25.     ln $(LBINS) .
  26.  
  27. install:    feedpipe
  28.     rm -f $(BIN)/feedpipe
  29.     chmod 711 feedpipe
  30.     ln feedpipe $(BIN)
  31.  
  32. dist:    gen shar
  33.  
  34. # gen stuff needs my genfiles package
  35. gen:    $(NAME).gen
  36.  
  37. $(NAME).gen:    $(DIST)
  38.     mkscript $^ > $(NAME).gen
  39.  
  40. shar:    $(NAME).01
  41.  
  42. $(NAME).01:    $(DIST)
  43.     shar -vxfL 40 -o $(NAME) $^
  44.     chmod 644 $(NAME).01
  45.     rm -f /usr/spool/uucppublic/pub/distrib/$(NAME).shar
  46.     ln $(NAME).01 /usr/spool/uucppublic/pub/distrib/$(NAME).shar
  47.  
  48. strip:    feedpipe
  49.     strip feedpipe
  50.  
  51. mcs:    feedpipe
  52.     mcs -d feedpipe
  53.  
  54. # The following is to get the getline source into this directory for
  55. # distribution purposes since it is in my standard library and not
  56. # actually needed for building.
  57.  
  58. getline.c:    ../library/getline.c
  59.     ln ../library/getline.c .
  60.  
  61. xgetline.o:    getline.c
  62.     $(CC) $(CFLAGS) -DXGETLINE_VERSION -c getline.c -o xgetline.o
  63.  
  64. # not needed in feedpipe but it's available in getline anyway
  65. wgetline.o:    getline.c
  66.     $(CC) $(CFLAGS) -DCURSES_VERSION -c getline.c -o wgetline.o
  67.  
  68.