Makefile 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. #######################################################################
  2. #
  3. # Makefile to compile all examples and convert them to LaTeX
  4. #
  5. #######################################################################
  6. # Compiler
  7. PP=ppc386
  8. # Unit directory
  9. # UNITDIR=/usr/lib/ppc/0.99.0/linuxunits
  10. # Any options you wish to pass.
  11. PPOPTS=
  12. # Script to convert the programs to LaTeX examples which can be included.
  13. PP2TEX=../pp2tex
  14. # Script to collect all examples in 1 file.
  15. MAKETEX=make1tex
  16. #######################################################################
  17. # No need to edit after this line.
  18. #######################################################################
  19. ifdef UNITDIR
  20. PPOPTS:=$(PPOPTS) -Up$(UNITDIR);
  21. endif
  22. .SUFFIXES: .pp .tex
  23. .PHONY: all tex clean execute
  24. OBJECTS=rttiobj trtti1 trtti2 trtti3 ex1 ex2 ex3 ex4 ex5 ex6 ex7 ex8 ex9 \
  25. ex10 ex11 ex12 ex13 ex14 ex15 ex16 ex17 ex18
  26. # This might not be the same list as objects, since some of the
  27. # tests might be interactive.
  28. TOTEST=trtti1 trtti2 trtti3 ex1 ex2 ex3 ex4 ex5 ex6 ex7 ex8 ex9 \
  29. ex10 ex11 ex12 ex13 ex14 ex15 ex16 ex17 ex18
  30. LOGFILE=$(addsuffix .log, $(TOTEST))
  31. TEXOBJECTS=$(addsuffix .tex, $(OBJECTS))
  32. all : $(OBJECTS)
  33. execute: $(LOGFILE)
  34. tex : $(TEXOBJECTS)
  35. onetex : tex
  36. $(MAKETEX) $(TEXOBJECTS)
  37. clean :
  38. rm -f *.o *.s $(OBJECTS) $(TEXOBJECTS) rttiobj.ppu
  39. rm -f *.ow *.sw *.exe *.dll *.tmp *.log rttiobj.ppw
  40. $(OBJECTS): %: %.pp
  41. $(PP) $(PPOPTS) $*
  42. $(TEXOBJECTS): %.tex: %.pp head.tex foot.tex
  43. $(PP2TEX) $*
  44. $(LOGFILE): %.log: %.exe
  45. $* > $*.log