Makefile 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. # Makefile for top level of lmbench
  2. # $Id$
  3. # Possible things to $(MAKE):
  4. #
  5. # build (default) go to the source directory and build the benchmark
  6. # results go to the source directory and build and run the benchmark
  7. # rerun run the benchmark again
  8. # see see the results that came with this release
  9. # Go to the results directory and read the Makefile.
  10. # doc.lpr print the documentation
  11. # doc.x preview the documentation (needs X, groff, pic, etc)
  12. # clean go to the subdirs and $(MAKE) clean
  13. # get $(MAKE) sure all files are checked out
  14. # shar build a shippable shar archive
  15. SHELL=/bin/sh
  16. export CC
  17. export CFLAGS
  18. build:
  19. cd src && $(MAKE)
  20. cp bin/linux/hello /tmp
  21. results: FRC
  22. cd src && $(MAKE) results
  23. rerun:
  24. cd src && $(MAKE) rerun
  25. see:
  26. cd results && $(MAKE) summary percent 2>/dev/null | more
  27. doc.lpr:
  28. cd doc && $(MAKE) PS && lpr *.PS
  29. doc.x:
  30. cd doc && $(MAKE) x
  31. clobber clean:
  32. for i in doc src results scripts; do \
  33. echo ===== $$i =====; \
  34. (cd $$i && $(MAKE) clean); \
  35. done
  36. /bin/rm -rf bin/*
  37. get:
  38. for i in doc src results scripts; do \
  39. echo ===== $$i =====; \
  40. (cd $$i && co -q); \
  41. done
  42. @co -q
  43. info:
  44. for i in doc src results scripts; do \
  45. echo ===== $$i =====; \
  46. (cd $$i && info); \
  47. done
  48. release: scripts/mkrelease
  49. scripts/mkrelease
  50. scripts/mkrelease:
  51. cd scripts && co mkrelease
  52. # XXX - . must be named lmbench for this to work
  53. shar:
  54. $(MAKE) clean
  55. co -q Makefile
  56. $(MAKE) get
  57. cd .. && \
  58. find lmbench -type f -print | egrep -v 'noship|RCS' > /tmp/FILES
  59. cd .. && shar -S -a -n lmbench1.0 -L 50K < /tmp/FILES
  60. FRC: