xref: /linux/tools/perf/Build (revision bb9707077b4ee5f77bc9939b057ff8a0d410296f)
1perf-y += builtin-bench.o
2perf-y += builtin-annotate.o
3perf-y += builtin-config.o
4perf-y += builtin-diff.o
5perf-y += builtin-evlist.o
6perf-y += builtin-help.o
7perf-y += builtin-sched.o
8perf-y += builtin-buildid-list.o
9perf-y += builtin-buildid-cache.o
10perf-y += builtin-list.o
11perf-y += builtin-record.o
12perf-y += builtin-report.o
13perf-y += builtin-stat.o
14perf-y += builtin-timechart.o
15perf-y += builtin-top.o
16perf-y += builtin-script.o
17perf-y += builtin-kmem.o
18perf-y += builtin-lock.o
19perf-y += builtin-kvm.o
20perf-y += builtin-inject.o
21perf-y += builtin-mem.o
22perf-y += builtin-data.o
23perf-y += builtin-version.o
24
25perf-$(CONFIG_AUDIT) += builtin-trace.o
26perf-$(CONFIG_LIBELF) += builtin-probe.o
27
28perf-y += bench/
29perf-y += tests/
30
31perf-y += perf.o
32
33paths += -DPERF_HTML_PATH="BUILD_STR($(htmldir_SQ))"
34paths += -DPERF_INFO_PATH="BUILD_STR($(infodir_SQ))"
35paths += -DPERF_MAN_PATH="BUILD_STR($(mandir_SQ))"
36
37CFLAGS_builtin-help.o      += $(paths)
38CFLAGS_builtin-timechart.o += $(paths)
39CFLAGS_perf.o              += -DPERF_HTML_PATH="BUILD_STR($(htmldir_SQ))"	\
40			      -DPERF_EXEC_PATH="BUILD_STR($(perfexecdir_SQ))"	\
41			      -DPREFIX="BUILD_STR($(prefix_SQ))"		\
42			      -include $(OUTPUT)PERF-VERSION-FILE
43CFLAGS_builtin-trace.o	   += -DSTRACE_GROUPS_DIR="BUILD_STR($(STRACE_GROUPS_DIR_SQ))"
44CFLAGS_builtin-report.o	   += -DTIPDIR="BUILD_STR($(tipdir_SQ))"
45CFLAGS_builtin-report.o	   += -DDOCDIR="BUILD_STR($(srcdir_SQ)/Documentation)"
46
47libperf-y += util/
48libperf-y += arch/
49libperf-y += ui/
50libperf-y += scripts/
51
52gtk-y += ui/gtk/
53