home *** CD-ROM | disk | FTP | other *** search
/ GEMini Atari / GEMini_Atari_CD-ROM_Walnut_Creek_December_1993.iso / files / utility / patch / makefile < prev    next >
Encoding:
Makefile  |  1988-08-03  |  1.7 KB  |  68 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. CFLAGS = -O
  12. LDFLAGS = -s
  13.  
  14. public = patch.ttp
  15. private = 
  16. manpages = patch.man
  17. util = makefile
  18.  
  19. src = patch.c pch.c inp.c version.c util.c atarist.c
  20.  
  21. obj = patch.o pch.o inp.o util.o version.o atarist.o
  22.  
  23. lintflags = -phbvxac
  24.  
  25. addedbyconf = Makefile.old bsd config.h config.sh eunice loc pdp11 usg v7
  26.  
  27. all: $(public) $(private) $(util)
  28.     touch all
  29.  
  30. patch.ttp: $(obj)
  31.     $(CC) $(LDFLAGS) $(obj) $(libs) -o patch.ttp
  32.  
  33. # won't work with csh
  34. install: patch
  35.     export PATH || exit 1
  36.     - mv $(bin)/patch $(bin)/patch.old
  37.     - if test `pwd` != $(bin); then cp $(public) $(bin); fi
  38.     cd $(bin); chmod 755 $(public)
  39.     - if test `pwd` != $(mansrc); then \
  40. for page in $(manpages); do \
  41. cp $$page $(mansrc)/`basename $$page .man`.$(manext); \
  42. done; \
  43. fi
  44.  
  45. clean:
  46.     rm -f *.o *.orig core
  47.  
  48. realclean:
  49.     rm -f patch *.o *.orig core $(addedbyconf)
  50.  
  51. # The following lint has practically everything turned on.  Unfortunately,
  52. # you have to wade through a lot of mumbo jumbo that can't be suppressed.
  53. # If the source file has a /*NOSTRICT*/ somewhere, ignore the lint message
  54. # for that spot.
  55.  
  56. lint:
  57.     lint $(lintflags) $(defs) $(src) > patch.fuzz
  58.  
  59. patch.o: config.h common.h patch.c inp.h pch.h util.h version.h
  60. pch.o: config.h common.h pch.c pch.h util.h
  61. inp.o: config.h common.h inp.c inp.h util.h
  62. util.o: config.h common.h util.c util.h
  63. version.o: config.h common.h version.c version.h patchlevel.h util.h
  64.  
  65.