home *** CD-ROM | disk | FTP | other *** search
/ Complete Linux / Complete Linux.iso / docs / apps / tex / lametex_.z / lametex_ / lametex / src / Makefile~ < prev    next >
Encoding:
Text File  |  1993-01-20  |  1.9 KB  |  61 lines

  1. # The LameTeX Makefile
  2.  
  3. # Make the correct directories for the following.
  4. EXEC = /usr/local/unsup/src/lametex/src/lametex
  5. SRCDIR = /usr/local/unsup/src/lametex/src/
  6. PAGEDIR = /usr/local/unsup/src/lametex/page/
  7.  
  8. # Below should be the command that on your system transforms a file
  9. # lametex.tex into a file lametex.dvi. Use your version of LaTeX for this.
  10. # You MUST put \040 in place of the space character. For example,
  11. # "latex lametex.tex"        turns into        "latex\040lametex.tex"
  12. LATEX = latex\040lametex.tex
  13.  
  14. # Below should be the command that on your system transforms a file
  15. # lametex.dvi into a file lametex.ps. Use your version of dvips for this.
  16. # You MUST put \040 in place of the space character. For example,
  17. # "dvips lametex.dvi -o"     turns into     "dvips\040lametex.dvi\040-o"
  18. DVIPS = dvips\040lametex.dvi\040-o
  19.  
  20. # List of other libraries the test files use
  21. LDFLAGS =
  22.  
  23. ### List of include directories to look for file included with #include<..>
  24. INC =
  25.  
  26.  
  27. C++FLAGS = -g -DPAGEDIR=\"${PAGEDIR}\" -DSRCDIR=\"${SRCDIR}\" \
  28.      '-DDVIPS="${DVIPS}"' '-DLATEX="${LATEX}"'
  29.  
  30. # Choose the appropriate C++ compiler and make sure the pathname is correct
  31. #CC = /pro/mia/bin/CC-3.0.1 -DATT_CC30 -D_CC30 $(C++FLAGS)
  32. #CC = /cs/bin/gcc $(C++FLAGS)
  33. CC = g++ $(C++FLAGS)
  34. #CC = /usr/lang/CC $(C++FLAGS)
  35. #CC = /cs/bin/CC $(C++FLAGS)
  36.  
  37. ### Command to compile a .C file into a .o file
  38. CCC = $(CC) $(DEFINES) -c $(INC)
  39.  
  40. ### Command to compile a .C file into an executable
  41. CCL = $(CC) $(LDFLAGS)
  42.  
  43. all : lametex
  44.  
  45. ### How to make a .C file into a .o file if it has a .h file
  46. %.o :: %.C
  47.     $(CCC) $<
  48.  
  49. ### How to make a .C file into a .o file if it does not have a .h file
  50. %.o :: %.C
  51.     $(CCC) $<
  52.  
  53. ### main program
  54.  
  55. lametex_objs = LameTeX.o FileInput.o Token.o Stack.o Environment.o \
  56.     Operator.o Counter.o Document.o Font.o Justify.o Length.o Label.o
  57.  
  58. lametex : $(lametex_objs)
  59.     $(CCL) -o $(EXEC) $(lametex_objs) $(LIBS)
  60.