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

  1. # Use this makefile if you have access to getpar(). You then
  2. # need to link with the library that provides it (e.g. -lsep below).
  3. # If you don't use the other makefile (./makefiile).
  4.  
  5. CFLAGS = -O
  6. LINTFLAGS = -abchnpux
  7. CSUBS = Expand.c Match.c subs.c
  8. OSUBS = Expand.o Match.o subs.o
  9. B =
  10.  
  11. default: all
  12.  
  13. all: texexpand detex texeqn texmatch
  14.  
  15. texexpand: texexpand2.o $(OSUBS)
  16.     cc $(CFLAGS) -o $(B)texexpand texexpand2.o $(OSUBS) -lsep
  17.  
  18. detex: detex2.o DeTeX.o $(OSUBS)
  19.     cc $(CFLAGS) -o $(B)detex detex2.o DeTeX.o $(OSUBS) -lsep
  20.  
  21. texeqn: texeqn2.o Eqn.o $(OSUBS)
  22.     cc $(CFLAGS) -o $(B)texeqn texeqn2.o Eqn.o $(OSUBS) -lsep
  23.  
  24. texmatch: texmatch2.o $(OSUBS)
  25.     cc $(CFLAGS) -o $(B)texmatch texmatch2.o $(OSUBS) -lsep
  26.  
  27. lint:
  28.     lint $(LINTFLAGS) texexpand2.c $(CSUBS) > texexpand.lnt
  29.     lint $(LINTFLAGS) detex2.c DeTeX.c $(CSUBS) > detex.lnt
  30.     lint $(LINTFLAGS) texeqn2.c Eqn.c $(CSUBS) > texeqn.lnt
  31.     lint $(LINTFLAGS) texmatch2.c $(CSUBS) > texmatch.lnt
  32.     
  33. clean:
  34.     /bin/rm -f *.o core *junk* lint.lst
  35.