home *** CD-ROM | disk | FTP | other *** search
/ ARM Club 3 / TheARMClub_PDCD3.iso / hensa / programming / cweb / cwebsrc / CWEB / src / Examples / Makefile next >
Encoding:
Makefile  |  1996-10-31  |  804 b   |  50 lines

  1. #
  2. # generic Makefile to use when you've got CWEB
  3. # (add it to, or add to it, whatever you like)
  4. #
  5. #======================================================================
  6.  
  7. CFLAGS = -O
  8. WFILES = extex.w treeprint.w wc.w wmerge.w wordtest.w oemacs.w
  9.  
  10. #======================================================================
  11.  
  12. .SUFFIXES: .tex .dvi .w
  13.  
  14. .w.tex:
  15.     cweave $*
  16.  
  17. .tex.dvi:    
  18.     tex $<
  19.  
  20. .w.dvi:
  21.     make $*.tex
  22.     make $*.dvi
  23.  
  24. .w.c:
  25.     ctangle $*
  26.  
  27. .w.o:
  28.     make $*.c
  29.     make $*.o
  30.  
  31. .c.o:
  32.     cc $(CFLAGS) -c $*.c
  33.  
  34. .w:
  35.     make $*.c
  36.     cc $(CFLAGS) $*.c -o $*
  37.  
  38. #======================================================================
  39.  
  40. all: $(WFILES: .w=) excweb
  41.  
  42. excweb: extex
  43.     ln extex excweb
  44.  
  45. oemacs: oemacs.c
  46.     cc $(CFLAGS) -I/usr/openwin/include oemacs.c \
  47.              -o oemacs -lxview -lolgx -lX11
  48.  
  49. doc: $(WFILES:.w=.dvi)
  50.