Makefile 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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=ex1 ex2 ex3 ex4 ex5 ex6 ex7 ex8 ex9 ex10 ex11 ex12 ex13 ex14 \
  25. ex15 ex16 ex17 ex18 ex19 ex20 ex21 ex22 ex23 ex24 ex25 ex26 ex27 \
  26. ex28 ex29 ex30 ex31 ex32 ex33 ex34 ex35 ex36 ex37 ex38 ex39 ex40 \
  27. ex41 ex42 ex43 ex44 ex45 ex46 ex47 ex48 ex49 ex50 ex51 ex52 ex53 \
  28. ex54 ex55 ex56 ex57 ex58 ex59 ex60 ex61 ex62 ex63 ex64 ex65 ex66 \
  29. ex67 ex68 ex69 ex70 ex71 ex72 ex73 ex74 ex75 ex76 ex77 ex78 ex79 \
  30. ex80 ex81 ex82 ex83 ex84 ex85 ex86 ex87 ex88 ex89 \
  31. ex90 ex91 ex92 ex93 ex94 ex95 ex96 ex97 ex98 ex99 ex100 ex101 ex102\
  32. ex103 ex104 ex105 ex106 ex107 ex108 ex109 ex110 ex111 ex112
  33. TEXOBJECTS=$(addsuffix .tex, $(OBJECTS))
  34. # This is not the same list as objects, since some of the
  35. # tests are interactive.
  36. TOTEST=ex1 ex2 ex3 ex4 ex5 ex8 ex9 ex10 ex11 ex12 ex13 ex14 \
  37. ex15 ex16 ex17 ex20 ex21 ex22 ex23 ex25 ex26 ex27 \
  38. ex28 ex29 ex31 ex32 ex33 ex34 ex36 ex37 ex38 ex39 ex40 \
  39. ex41 ex42 ex43 ex44 ex45 ex47 ex48 ex52 ex53 \
  40. ex54 ex56 ex59 ex60 ex62 ex63 ex64 ex65 ex66 \
  41. ex67 ex68 ex69 ex70 ex71 ex72 ex73 ex75 ex76 ex78 ex79 \
  42. ex80 ex81 ex82 ex83 ex85 ex86 ex87 ex88 ex89 \
  43. ex90 ex91 ex92 ex93 ex96 ex97 ex98 ex99 ex100 ex101 ex102\
  44. ex103 ex104 ex105 ex106 ex107 ex108 ex109 ex110 ex111 ex112
  45. LOGFILE=$(addsuffix .log, $(TOTEST))
  46. all : $(OBJECTS)
  47. tex : $(TEXOBJECTS)
  48. execute: $(LOGFILE)
  49. onetex : tex
  50. $(MAKETEX) $(TEXOBJECTS)
  51. clean :
  52. rm -f *.o *.s *.rst $(OBJECTS) $(TEXOBJECTS)
  53. rm -f *.ow *.sw *.exe *.dll *.log *.tmp
  54. $(OBJECTS): %: %.pp
  55. $(PP) $(PPOPTS) $*
  56. $(TEXOBJECTS): %.tex: %.pp head.tex foot.tex
  57. $(PP2TEX) $*
  58. $(LOGFILE): %.log: %.exe
  59. $* > $*.log