home *** CD-ROM | disk | FTP | other *** search
/ GEMini Atari / GEMini_Atari_CD-ROM_Walnut_Creek_December_1993.iso / files / utility / patch / makefile.sh < prev    next >
Encoding:
Makefile  |  1988-07-20  |  1.8 KB  |  74 lines

  1. # $Header: Makefile.SH,v 2.0 86/09/17 15:36:15 lwall Exp $
  2. #
  3. # $Log:    Makefile.SH,v $
  4. # Revision 2.0  86/09/17  15:36:15  lwall
  5. # Baseline for netwide release.
  6. # Revision 1.2  86/09/08  14:07:42  lwall
  7. # Split up patch.c.
  8. # Revision 1.1  86/08/01  20:18:35  lwall
  9. # Initial revision
  10.  
  11. CC = $cc
  12. bin = $bin
  13. mansrc = $mansrc
  14. manext = $manext
  15. CFLAGS = $iandd -O
  16. LDFLAGS = $iandd
  17.  
  18. public = patch.ttp
  19. private = 
  20. manpages = patch.man
  21. util = Makefile
  22.  
  23. c = patch.c pch.c inp.c version.c util.c
  24.  
  25. obj = patch.o pch.o inp.o util.o version.o
  26.  
  27. lintflags = -phbvxac
  28.  
  29. addedbyconf = Makefile.old bsd config.h config.sh eunice loc pdp11 usg v7
  30.  
  31. all: $(public) $(private) $(util)
  32.     touch all
  33.  
  34. patch.ttp: $(obj)
  35.     $(CC) $(LDFLAGS) $(obj) $(libs) -o patch.ttp
  36.  
  37. # won't work with csh
  38. install: patch
  39.     export PATH || exit 1
  40.     - mv $(bin)/patch $(bin)/patch.old
  41.     - if test `pwd` != $(bin); then cp $(public) $(bin); fi
  42.     cd $(bin); chmod 755 $(public)
  43.     - if test `pwd` != $(mansrc); then \
  44. for page in $(manpages); do \
  45. cp $$page $(mansrc)/`basename $$page .man`.$(manext); \
  46. done; \
  47. fi
  48.  
  49. clean:
  50.     rm -f *.o *.orig core
  51.  
  52. realclean:
  53.     rm -f patch *.o *.orig core $(addedbyconf)
  54.  
  55. # The following lint has practically everything turned on.  Unfortunately,
  56. # you have to wade through a lot of mumbo jumbo that can't be suppressed.
  57. # If the source file has a /*NOSTRICT*/ somewhere, ignore the lint message
  58. # for that spot.
  59.  
  60. lint:
  61.     lint $(lintflags) $(defs) $(c) > patch.fuzz
  62.  
  63. patch.o: config.h common.h patch.c inp.h pch.h util.h version.h
  64. pch.o: config.h common.h pch.c pch.h util.h
  65. inp.o: config.h common.h inp.c inp.h util.h
  66. util.o: config.h common.h util.c util.h
  67. version.o: config.h common.h version.c version.h patchlevel.h util.h
  68.  
  69. !NO!SUBS!
  70. $eunicefix Makefile
  71.