Makefile 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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
  24. OBJECTS=buffer callback flags getrunmd int_pm keyclick meminfo outport \
  25. rmpm_int sel_des softint textmess vgasel
  26. TEXOBJECTS=$(addsuffix .tex, $(OBJECTS))
  27. all : $(OBJECTS)
  28. tex : $(TEXOBJECTS)
  29. onetex : tex
  30. $(MAKETEX) $(TEXOBJECTS)
  31. clean :
  32. rm -f *.o *.s $(OBJECTS) $(TEXOBJECTS)
  33. $(OBJECTS): %: %.pp
  34. $(PP) $(PPOPTS) $*
  35. $(TEXOBJECTS): %.tex: %.pp head.tex foot.tex
  36. $(PP2TEX) $*