4 The perf build process consists of several separated building blocks,
5 which are linked together to form the perf binary:
6 - libperf library (static)
7 - perf builtin commands
8 - traceevent library (static)
11 Several makefiles govern the perf build:
14 top level Makefile working as a wrapper that calls the main
15 Makefile.perf with a -j option to do parallel builds.
18 main makefile that triggers build of all perf objects including
19 installation and documentation processing.
21 - tools/build/Makefile.build
22 main makefile of the build framework
24 - tools/build/Build.include
25 build framework generic definitions
28 makefiles that defines build objects
30 Please refer to tools/build/Documentation/Build.txt for more
31 information about build framework.
36 The Makefile.perf triggers the build framework for build objects:
39 resulting in following objects:
41 gtk-in.o libperf-in.o perf-in.o
43 Those objects are then used in final linking:
44 libperf-gtk.so <- gtk-in.o libperf-in.o
45 perf <- perf-in.o libperf-in.o
48 NOTE this description is omitting other libraries involved, only
49 focusing on build framework outcomes