xref: /openbmc/linux/tools/perf/Build (revision fb574682)
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-ftrace.o
7perf-y += builtin-help.o
8perf-y += builtin-sched.o
9perf-y += builtin-buildid-list.o
10perf-y += builtin-buildid-cache.o
11perf-y += builtin-kallsyms.o
12perf-y += builtin-list.o
13perf-y += builtin-record.o
14perf-y += builtin-report.o
15perf-y += builtin-stat.o
16perf-y += builtin-timechart.o
17perf-y += builtin-top.o
18perf-y += builtin-script.o
19perf-y += builtin-kmem.o
20perf-y += builtin-lock.o
21perf-y += builtin-kvm.o
22perf-y += builtin-inject.o
23perf-y += builtin-mem.o
24perf-y += builtin-data.o
25perf-y += builtin-version.o
26perf-y += builtin-c2c.o
27
28perf-$(CONFIG_TRACE) += builtin-trace.o
29perf-$(CONFIG_LIBELF) += builtin-probe.o
30
31perf-y += bench/
32perf-y += tests/
33
34perf-y += perf.o
35
36paths += -DPERF_HTML_PATH="BUILD_STR($(htmldir_SQ))"
37paths += -DPERF_INFO_PATH="BUILD_STR($(infodir_SQ))"
38paths += -DPERF_MAN_PATH="BUILD_STR($(mandir_SQ))"
39
40CFLAGS_builtin-help.o      += $(paths)
41CFLAGS_builtin-timechart.o += $(paths)
42CFLAGS_perf.o              += -DPERF_HTML_PATH="BUILD_STR($(htmldir_SQ))"	\
43			      -DPERF_EXEC_PATH="BUILD_STR($(perfexecdir_SQ))"	\
44			      -DPREFIX="BUILD_STR($(prefix_SQ))"
45CFLAGS_builtin-trace.o	   += -DSTRACE_GROUPS_DIR="BUILD_STR($(STRACE_GROUPS_DIR_SQ))"
46CFLAGS_builtin-report.o	   += -DTIPDIR="BUILD_STR($(tipdir_SQ))"
47CFLAGS_builtin-report.o	   += -DDOCDIR="BUILD_STR($(srcdir_SQ)/Documentation)"
48
49perf-y += util/
50perf-y += arch/
51perf-y += ui/
52perf-y += scripts/
53perf-$(CONFIG_TRACE) += trace/beauty/
54
55gtk-y += ui/gtk/
56