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

  1. #-----------------------------------------------------------------------
  2. # Makefile for textools
  3. # Make targets:
  4. #    (none)    same as all
  5. #    all    produces all executables
  6. #    lint    run lint on sources
  7. #    clean    remove object files
  8. #    share    make ../textools.sh for mailing
  9. #
  10.  
  11. CFLAGS = -O
  12. LINTFLAGS = -abchnpux
  13. CSUBS = Expand.c Match.c subs.c
  14. OSUBS = Expand.o Match.o subs.o
  15. B =
  16.  
  17. default: all
  18.  
  19. all: texexpand detex texeqn texmatch
  20.  
  21. texexpand: texexpand1.o $(OSUBS)
  22.     cc $(CFLAGS) -o $(B)texexpand texexpand1.o $(OSUBS)
  23.  
  24. detex: detex1.o DeTeX.o $(OSUBS)
  25.     cc $(CFLAGS) -o $(B)detex detex1.o DeTeX.o $(OSUBS)
  26.  
  27. texeqn: texeqn1.o Eqn.o $(OSUBS)
  28.     cc $(CFLAGS) -o $(B)texeqn texeqn1.o Eqn.o $(OSUBS)
  29.  
  30. texmatch: texmatch1.o $(OSUBS)
  31.     cc $(CFLAGS) -o $(B)texmatch texmatch1.o $(OSUBS)
  32.  
  33. share:
  34.     make clean
  35.     makescript ../textools.sh *
  36.  
  37. lint:
  38.     lint $(LINTFLAGS) texexpand1.c $(CSUBS) > texexpand.lnt
  39.     lint $(LINTFLAGS) detex1.c DeTeX.c $(CSUBS) > detex.lnt
  40.     lint $(LINTFLAGS) texeqn1.c Eqn.c $(CSUBS) > texeqn.lnt
  41.     lint $(LINTFLAGS) texmatch1.c $(CSUBS) > texmatch.lnt
  42.     
  43. clean:
  44.     \rm -f *.o core *junk* lint.lst
  45.