Build.txt 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. 1) perf build
  2. =============
  3. The perf build process consists of several separated building blocks,
  4. which are linked together to form the perf binary:
  5. - libperf library (static)
  6. - perf builtin commands
  7. - traceevent library (static)
  8. - GTK ui library
  9. Several makefiles govern the perf build:
  10. - Makefile
  11. top level Makefile working as a wrapper that calls the main
  12. Makefile.perf with a -j option to do parallel builds.
  13. - Makefile.perf
  14. main makefile that triggers build of all perf objects including
  15. installation and documentation processing.
  16. - tools/build/Makefile.build
  17. main makefile of the build framework
  18. - tools/build/Build.include
  19. build framework generic definitions
  20. - Build makefiles
  21. makefiles that defines build objects
  22. Please refer to tools/build/Documentation/Build.txt for more
  23. information about build framework.
  24. 2) perf build
  25. =============
  26. The Makefile.perf triggers the build framework for build objects:
  27. perf, libperf, gtk
  28. resulting in following objects:
  29. $ ls *-in.o
  30. gtk-in.o libperf-in.o perf-in.o
  31. Those objects are then used in final linking:
  32. libperf-gtk.so <- gtk-in.o libperf-in.o
  33. perf <- perf-in.o libperf-in.o
  34. NOTE this description is omitting other libraries involved, only
  35. focusing on build framework outcomes