1perf-bench-y += builtin-bench.o 2perf-y += builtin-annotate.o 3perf-y += builtin-check.o 4perf-y += builtin-config.o 5perf-y += builtin-diff.o 6perf-y += builtin-evlist.o 7perf-y += builtin-ftrace.o 8perf-y += builtin-help.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-top.o 17perf-y += builtin-script.o 18perf-y += builtin-kvm.o 19perf-y += builtin-inject.o 20perf-y += builtin-mem.o 21perf-y += builtin-data.o 22perf-y += builtin-version.o 23perf-y += builtin-c2c.o 24perf-y += builtin-daemon.o 25 26perf-$(CONFIG_LIBTRACEEVENT) += builtin-kmem.o 27perf-$(CONFIG_LIBTRACEEVENT) += builtin-kwork.o 28perf-$(CONFIG_LIBTRACEEVENT) += builtin-lock.o 29perf-$(CONFIG_LIBTRACEEVENT) += builtin-sched.o 30perf-$(CONFIG_LIBTRACEEVENT) += builtin-timechart.o 31 32ifeq ($(CONFIG_LIBTRACEEVENT),y) 33 perf-$(CONFIG_TRACE) += builtin-trace.o 34 perf-$(CONFIG_TRACE) += trace/beauty/ 35endif 36 37perf-$(CONFIG_LIBELF) += builtin-probe.o 38 39perf-bench-y += bench/ 40perf-test-y += tests/ 41 42perf-y += perf.o 43 44paths += -DPERF_HTML_PATH="BUILD_STR($(htmldir_SQ))" 45paths += -DPERF_INFO_PATH="BUILD_STR($(infodir_SQ))" 46paths += -DPERF_MAN_PATH="BUILD_STR($(mandir_SQ))" 47 48CFLAGS_builtin-help.o += $(paths) 49CFLAGS_builtin-timechart.o += $(paths) 50CFLAGS_perf.o += -DPERF_HTML_PATH="BUILD_STR($(htmldir_SQ))" \ 51 -DPERF_EXEC_PATH="BUILD_STR($(perfexecdir_SQ))" \ 52 -DPREFIX="BUILD_STR($(prefix_SQ))" 53CFLAGS_builtin-trace.o += -DSTRACE_GROUPS_DIR="BUILD_STR($(STRACE_GROUPS_DIR_SQ))" 54CFLAGS_builtin-report.o += -DTIPDIR="BUILD_STR($(tipdir_SQ))" 55CFLAGS_builtin-report.o += -DDOCDIR="BUILD_STR($(srcdir_SQ)/Documentation)" 56 57perf-util-y += util/ 58perf-util-y += arch/ 59perf-y += arch/ 60perf-test-y += arch/ 61perf-ui-y += ui/ 62perf-util-y += scripts/ 63 64gtk-y += ui/gtk/ 65 66ifdef SHELLCHECK 67 SHELL_TESTS := $(wildcard *.sh) 68 TEST_LOGS := $(SHELL_TESTS:%=%.shellcheck_log) 69else 70 SHELL_TESTS := 71 TEST_LOGS := 72endif 73 74$(OUTPUT)%.shellcheck_log: % 75 $(call rule_mkdir) 76 $(Q)$(call echo-cmd,test)shellcheck -s bash -a -S warning "$<" > $@ || (cat $@ && rm $@ && false) 77 78perf-y += $(TEST_LOGS) 79