home *** CD-ROM | disk | FTP | other *** search
/ ARM Club 3 / TheARMClub_PDCD3.iso / hensa / programming / cweb / cwebsrc / CWEB / src / Makefile
Encoding:
Makefile  |  1996-11-22  |  1.8 KB  |  64 lines

  1. # This file is part of CWEB.
  2. # It is distributed WITHOUT ANY WARRANTY, express or implied.
  3. # Version 3.0 --- June 1993
  4.  
  5. # Copyright (C) 1987,1990,1993 Silvio Levy and Donald E. Knuth
  6.  
  7. # Permission is granted to make and distribute verbatim copies of this
  8. # document provided that the copyright notice and this permission notice
  9. # are preserved on all copies.
  10.  
  11. # Permission is granted to copy and distribute modified versions of this
  12. # document under the conditions for verbatim copying, provided that the
  13. # entire resulting derived work is given a different name and distributed
  14. # under the terms of a permission notice identical to this one.
  15.  
  16. # Read the README file, then edit this file to reflect local conditions
  17. #
  18.  
  19. # directory for TeX inputs (cwebmac.tex goes here)
  20. MACROSDIR= TeXInputs:
  21.  
  22. # directory for CWEB inputs in @i files
  23. CWEBINPUTS= TeXInputs:
  24.  
  25. # Set DESTPREF to null if you want to call the executables "tangle" and "weave"
  26. # (probably NOT a good idea; we recommend leaving DESTPREF=c)
  27. DESTPREF=c
  28.  
  29. # Set CCHANGES to comm-foo.ch if you need changes to common.w
  30. CCHANGES=
  31.  
  32. # We keep debugging info around, for fun, but most users don't need it
  33. #CFLAGS = -g
  34. CFLAGS = -O
  35. LINKFLAGS = 
  36. #LINKFLAGS = -s # for smaller (stripped) executables on many UNIX systems
  37.  
  38. # What C compiler are you using?
  39. CC = gcc
  40.  
  41. ##########  You shouldn't have to change anything after this point #######
  42.  
  43. CTANGLE = ctangle
  44. ALMOSTALL = common.c common.h ctangle.c cwebman.tex cwebmac.tex
  45. ALL =  $(ALMOSTALL) cweave.w
  46.  
  47. all: ctangle cweave
  48.  
  49. common.c: common.w $(CCHANGES)
  50.     $(CTANGLE) common $(CCHANGES)
  51.  
  52. common.o: common.c
  53.     $(CC) $(CFLAGS) -DCWEBINPUTS=\"$(CWEBINPUTS)\" -c common.c
  54.  
  55. ctangle: ctangle.o common.o
  56.     $(CC) $(LINKFLAGS) -o ctangle ctangle.o common.o 
  57.  
  58. cweave: cweave.o common.o
  59.     $(CC) $(LINKFLAGS) -o cweave cweave.o common.o
  60.  
  61. usermanual: cwebman.tex cwebmac.tex
  62.     tex cwebman.tex
  63.