home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / alib / d8xx / d848 / cweb.lha / CWeb / CWeb27.lha / examples / makefile < prev    next >
Encoding:
Makefile  |  1993-03-13  |  349 b   |  34 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. CFLAGS = -g
  7. MLIB = -lm
  8.  
  9. .SUFFIXES: .tex .dvi .w .run
  10.  
  11. .w.tex:
  12.     cweave $*
  13.  
  14. .tex.dvi:    
  15.     tex $*
  16.  
  17. .w.dvi:
  18.     make $*.tex
  19.     make $*.dvi
  20.  
  21. .w.c:
  22.     ctangle $*
  23.  
  24. .w.o:
  25.     make $*.c
  26.     make $*.o
  27.  
  28. .c.o:
  29.     cc $(CFLAGS) -c $*.c
  30.  
  31. .w.run:
  32.     make $*.c
  33.     cc $(CFLAGS) $*.c -o $*
  34.