home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 3 / PDCD_3.iso / tex / texsrc1 / Src / web / Makefile < prev   
Makefile  |  1993-05-21  |  2KB  |  74 lines

  1. # This file makes WEB-related programs: tangle, weave, and pooltype.
  2. # tangle is made using the supplied version. When upgrading, this will
  3. # be sufficient to build the new tangle.
  4.  
  5. # Routines used everywhere.
  6. commondefines=^.lib.common_def ^.lib.texmf_def
  7. commonh=^.lib.h.common ^.lib.h.texmfmem
  8. commono=^.lib.o.library
  9.  
  10. CC = cc
  11. CFLAGS = -throwback -W -f
  12. CPPFLAGS = -I^.lib
  13.  
  14. CCLD = link
  15. LDFLAGS = 
  16. libs = $(commono) C:o.Stubs $(extralibs)
  17.  
  18. default: triptrap
  19.  
  20. all: triptrap exec.weave exec.pooltype
  21.  
  22. triptrap: exec.tangle
  23.  
  24. exec.tangle: o.tangle $(commono)
  25.         $(CCLD) -o exec.tangle $(LDFLAGS) o.tangle $(libs)
  26.         squeeze exec.tangle
  27. o.tangle: c.tangle $(commonh)
  28.         $(CC) $(CFLAGS) $(CPPFLAGS) -c tangle
  29. c.tangle: tangle.p $(commondefines)
  30.         ^.lib.convert tangle c.tangle
  31. tangle.p: tangle.web tangle.ch
  32.         tangle tangle.web tangle.ch
  33.  
  34. exec.weave: o.weave $(commono)
  35.         $(CCLD) -o exec.weave $(LDFLAGS) o.weave $(libs)
  36.         squeeze exec.weave
  37. o.weave: c.weave $(commonh)
  38.         $(CC) $(CFLAGS) $(CPPFLAGS) -c weave
  39. c.weave: weave.p $(commondefines)
  40.         ^.lib.convert weave c.weave
  41. weave.p: weave.web weave.ch
  42.         tangle weave.web weave.ch
  43.  
  44.  
  45. exec.pooltype: o.pooltype $(commono)
  46.         $(CCLD) -o exec.pooltype $(LDFLAGS) o.pooltype $(libs) 
  47.         squeeze exec.pooltype
  48. o.pooltype: c.pooltype $(commonh)
  49.         $(CC) $(CFLAGS) $(CPPFLAGS) -c pooltype
  50. c.pooltype: pooltype.p $(commondefines)
  51.         ^.lib.convert pooltype c.pooltype
  52. pooltype.p: pooltype.web pooltype.ch
  53.         tangle pooltype.web pooltype.ch
  54.  
  55.  
  56. clean:
  57.         remove tangle.p
  58.         remove weave.p
  59.         remove pooltype.p
  60.         remove o.tangle
  61.         remove o.weave
  62.         remove o.pooltype
  63.         remove c.tangle
  64.         remove c.weave
  65.         remove c.pooltype
  66.         remove h.tangle
  67.         remove h.weave
  68.         remove h.pooltype
  69.  
  70. veryclean:
  71.         remove exec.weave # NEVER remove tangle!
  72.         remove exec.pooltype
  73.  
  74.