home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume8 / textools2 / part01 / makefile < prev    next >
Encoding:
Makefile  |  1987-02-12  |  800 b   |  31 lines

  1. CFLAGS = -O
  2. LINTFLAGS = -abchnpux
  3. CSUBS = Expand.c Match.c subs.c
  4. OSUBS = Expand.o Match.o subs.o
  5. B =
  6.  
  7. default: all
  8.  
  9. all: texexpand detex texeqn texmatch
  10.  
  11. texexpand: texexpand1.o $(OSUBS)
  12.     cc $(CFLAGS) -o $(B)texexpand texexpand1.o $(OSUBS)
  13.  
  14. detex: detex1.o DeTeX.o $(OSUBS)
  15.     cc $(CFLAGS) -o $(B)detex detex1.o DeTeX.o $(OSUBS)
  16.  
  17. texeqn: texeqn1.o Eqn.o $(OSUBS)
  18.     cc $(CFLAGS) -o $(B)texeqn texeqn1.o Eqn.o $(OSUBS)
  19.  
  20. texmatch: texmatch1.o $(OSUBS)
  21.     cc $(CFLAGS) -o $(B)texmatch texmatch1.o $(OSUBS)
  22.  
  23. lint:
  24.     lint $(LINTFLAGS) texexpand1.c $(CSUBS) > texexpand.lnt
  25.     lint $(LINTFLAGS) detex1.c DeTeX.c $(CSUBS) > detex.lnt
  26.     lint $(LINTFLAGS) texeqn1.c Eqn.c $(CSUBS) > texeqn.lnt
  27.     lint $(LINTFLAGS) texmatch1.c $(CSUBS) > texmatch.lnt
  28.     
  29. clean:
  30.     /bin/rm -f *.o texexpand detex texeqn texmatch core *junk*
  31.