xref: /linux/tools/perf/Build (revision 24bce201d79807b668bf9d9e0aca801c5c0d5f78)
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
27perf-y += builtin-daemon.o
28
29perf-$(CONFIG_TRACE) += builtin-trace.o
30perf-$(CONFIG_LIBELF) += builtin-probe.o
31
32perf-y += bench/
33perf-y += tests/
34
35perf-y += perf.o
36
37paths += -DPERF_HTML_PATH="BUILD_STR($(htmldir_SQ))"
38paths += -DPERF_INFO_PATH="BUILD_STR($(infodir_SQ))"
39paths += -DPERF_MAN_PATH="BUILD_STR($(mandir_SQ))"
40
41CFLAGS_builtin-help.o      += $(paths)
42CFLAGS_builtin-timechart.o += $(paths)
43CFLAGS_perf.o              += -DPERF_HTML_PATH="BUILD_STR($(htmldir_SQ))"	\
44			      -DPERF_EXEC_PATH="BUILD_STR($(perfexecdir_SQ))"	\
45			      -DPREFIX="BUILD_STR($(prefix_SQ))"
46CFLAGS_builtin-trace.o	   += -DSTRACE_GROUPS_DIR="BUILD_STR($(STRACE_GROUPS_DIR_SQ))"
47CFLAGS_builtin-report.o	   += -DTIPDIR="BUILD_STR($(tipdir_SQ))"
48CFLAGS_builtin-report.o	   += -DDOCDIR="BUILD_STR($(srcdir_SQ)/Documentation)"
49
50perf-y += util/
51perf-y += arch/
52perf-y += ui/
53perf-y += scripts/
54perf-$(CONFIG_TRACE) += trace/beauty/
55
56gtk-y += ui/gtk/
57