blob: 591b3fe3ed49acd8b31f701a78b3302a84786546 [file] [log] [blame]
Jiri Olsa9352aab2014-12-29 17:42:46 +01001libperf-y += abspath.o
2libperf-y += alias.o
3libperf-y += annotate.o
4libperf-y += build-id.o
5libperf-y += config.o
6libperf-y += ctype.o
7libperf-y += db-export.o
Arnaldo Carvalho de Melof0ce8882015-09-08 13:30:00 -03008libperf-y += env.o
Jiri Olsa9352aab2014-12-29 17:42:46 +01009libperf-y += environment.o
10libperf-y += event.o
11libperf-y += evlist.o
12libperf-y += evsel.o
13libperf-y += exec_cmd.o
14libperf-y += find_next_bit.o
15libperf-y += help.o
16libperf-y += kallsyms.o
17libperf-y += levenshtein.o
Wang Nanaa61fd02015-07-21 11:13:34 +000018libperf-y += llvm-utils.o
Jiri Olsa9352aab2014-12-29 17:42:46 +010019libperf-y += parse-options.o
20libperf-y += parse-events.o
Sukadev Bhattiprolueb56db52015-09-24 17:53:49 -040021libperf-y += perf_regs.o
Jiri Olsa9352aab2014-12-29 17:42:46 +010022libperf-y += path.o
23libperf-y += rbtree.o
24libperf-y += bitmap.o
25libperf-y += hweight.o
26libperf-y += run-command.o
27libperf-y += quote.o
28libperf-y += strbuf.o
29libperf-y += string.o
30libperf-y += strlist.o
31libperf-y += strfilter.o
32libperf-y += top.o
33libperf-y += usage.o
34libperf-y += wrapper.o
35libperf-y += sigchain.o
36libperf-y += dso.o
37libperf-y += symbol.o
38libperf-y += color.o
39libperf-y += pager.o
40libperf-y += header.o
41libperf-y += callchain.o
42libperf-y += values.o
43libperf-y += debug.o
44libperf-y += machine.o
45libperf-y += map.o
46libperf-y += pstack.o
47libperf-y += session.o
48libperf-y += ordered-events.o
49libperf-y += comm.o
50libperf-y += thread.o
51libperf-y += thread_map.o
52libperf-y += trace-event-parse.o
53libperf-y += parse-events-flex.o
54libperf-y += parse-events-bison.o
55libperf-y += pmu.o
56libperf-y += pmu-flex.o
57libperf-y += pmu-bison.o
58libperf-y += trace-event-read.o
59libperf-y += trace-event-info.o
60libperf-y += trace-event-scripting.o
61libperf-y += trace-event.o
62libperf-y += svghelper.o
63libperf-y += sort.o
64libperf-y += hist.o
65libperf-y += util.o
66libperf-y += xyarray.o
67libperf-y += cpumap.o
68libperf-y += cgroup.o
69libperf-y += target.o
70libperf-y += rblist.o
71libperf-y += intlist.o
72libperf-y += vdso.o
Jiri Olsad8095602015-08-07 12:51:03 +020073libperf-y += counts.o
Jiri Olsa9352aab2014-12-29 17:42:46 +010074libperf-y += stat.o
Jiri Olsaf87027b2015-06-03 16:25:59 +020075libperf-y += stat-shadow.o
Jiri Olsa9352aab2014-12-29 17:42:46 +010076libperf-y += record.o
77libperf-y += srcline.o
78libperf-y += data.o
David Ahernecefde62015-02-19 13:22:33 -050079libperf-$(CONFIG_X86) += tsc.o
Adrian Hunter97db6202015-08-31 21:39:44 +030080libperf-$(CONFIG_AUXTRACE) += tsc.o
Jiri Olsa9352aab2014-12-29 17:42:46 +010081libperf-y += cloexec.o
82libperf-y += thread-stack.o
Adrian Huntere31f0d02015-04-30 17:37:27 +030083libperf-$(CONFIG_AUXTRACE) += auxtrace.o
Adrian Huntera4e92592015-07-17 19:33:37 +030084libperf-$(CONFIG_AUXTRACE) += intel-pt-decoder/
Adrian Hunter90e457f2015-07-17 19:33:41 +030085libperf-$(CONFIG_AUXTRACE) += intel-pt.o
Adrian Hunterd0170af2015-07-17 19:33:43 +030086libperf-$(CONFIG_AUXTRACE) += intel-bts.o
Andi Kleenf00898f2015-05-27 10:51:51 -070087libperf-y += parse-branch-options.o
Stephane Eranianbcc84ec2015-08-31 18:41:12 +020088libperf-y += parse-regs-options.o
Jiri Olsa9352aab2014-12-29 17:42:46 +010089
Wang Nan84c86ca2015-10-14 12:41:14 +000090libperf-$(CONFIG_LIBBPF) += bpf-loader.o
Jiri Olsa709e6792014-12-29 23:52:25 +010091libperf-$(CONFIG_LIBELF) += symbol-elf.o
Masami Hiramatsu92f6c722015-07-15 18:14:07 +090092libperf-$(CONFIG_LIBELF) += probe-file.o
Jiri Olsa709e6792014-12-29 23:52:25 +010093libperf-$(CONFIG_LIBELF) += probe-event.o
94
95ifndef CONFIG_LIBELF
96libperf-y += symbol-minimal.o
97endif
98
Jiri Olsa8379fce2014-12-30 00:06:25 +010099libperf-$(CONFIG_DWARF) += probe-finder.o
100libperf-$(CONFIG_DWARF) += dwarf-aux.o
101
Jiri Olsab2e45c32014-12-30 00:11:11 +0100102libperf-$(CONFIG_LIBDW_DWARF_UNWIND) += unwind-libdw.o
103libperf-$(CONFIG_LIBUNWIND) += unwind-libunwind.o
104
Jiri Olsaedbe9812015-02-20 23:17:00 +0100105libperf-$(CONFIG_LIBBABELTRACE) += data-convert-bt.o
106
Jiri Olsac7355f82014-12-30 13:11:32 +0100107libperf-y += scripting-engines/
108
Jiri Olsa1571b692014-12-30 13:31:12 +0100109libperf-$(CONFIG_ZLIB) += zlib.o
Jiri Olsa80a32e5b2015-01-29 13:29:39 +0100110libperf-$(CONFIG_LZMA) += lzma.o
Jiri Olsa3bc33742014-12-30 13:30:04 +0100111
Jiri Olsa9352aab2014-12-29 17:42:46 +0100112CFLAGS_config.o += -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))"
113CFLAGS_exec_cmd.o += -DPERF_EXEC_PATH="BUILD_STR($(perfexecdir_SQ))" -DPREFIX="BUILD_STR($(prefix_SQ))"
114
115$(OUTPUT)util/parse-events-flex.c: util/parse-events.l $(OUTPUT)util/parse-events-bison.c
Jiri Olsa19993072014-12-30 18:44:38 +0100116 $(call rule_mkdir)
Jiri Olsa70923bd2015-05-14 12:31:48 -0300117 $(Q)$(call echo-cmd,flex)$(FLEX) -o $@ --header-file=$(OUTPUT)util/parse-events-flex.h $(PARSER_DEBUG_FLEX) util/parse-events.l
Jiri Olsa9352aab2014-12-29 17:42:46 +0100118
119$(OUTPUT)util/parse-events-bison.c: util/parse-events.y
Jiri Olsa19993072014-12-30 18:44:38 +0100120 $(call rule_mkdir)
Jiri Olsa70923bd2015-05-14 12:31:48 -0300121 $(Q)$(call echo-cmd,bison)$(BISON) -v util/parse-events.y -d $(PARSER_DEBUG_BISON) -o $@ -p parse_events_
Jiri Olsa9352aab2014-12-29 17:42:46 +0100122
123$(OUTPUT)util/pmu-flex.c: util/pmu.l $(OUTPUT)util/pmu-bison.c
Jiri Olsa19993072014-12-30 18:44:38 +0100124 $(call rule_mkdir)
Jiri Olsa70923bd2015-05-14 12:31:48 -0300125 $(Q)$(call echo-cmd,flex)$(FLEX) -o $@ --header-file=$(OUTPUT)util/pmu-flex.h util/pmu.l
Jiri Olsa9352aab2014-12-29 17:42:46 +0100126
127$(OUTPUT)util/pmu-bison.c: util/pmu.y
Jiri Olsa19993072014-12-30 18:44:38 +0100128 $(call rule_mkdir)
Jiri Olsa70923bd2015-05-14 12:31:48 -0300129 $(Q)$(call echo-cmd,bison)$(BISON) -v util/pmu.y -d -o $@ -p perf_pmu_
Jiri Olsa9352aab2014-12-29 17:42:46 +0100130
131CFLAGS_parse-events-flex.o += -w
132CFLAGS_pmu-flex.o += -w
Namhyung Kim539f3aa2015-04-29 12:55:00 -0300133CFLAGS_parse-events-bison.o += -DYYENABLE_NLS=0 -w
Jiri Olsa9352aab2014-12-29 17:42:46 +0100134CFLAGS_pmu-bison.o += -DYYENABLE_NLS=0 -DYYLTYPE_IS_TRIVIAL=0 -w
135
136$(OUTPUT)util/parse-events.o: $(OUTPUT)util/parse-events-flex.c $(OUTPUT)util/parse-events-bison.c
137$(OUTPUT)util/pmu.o: $(OUTPUT)util/pmu-flex.c $(OUTPUT)util/pmu-bison.c
138
139CFLAGS_find_next_bit.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))"
140CFLAGS_rbtree.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))"
141CFLAGS_hweight.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))"
142CFLAGS_parse-events.o += -Wno-redundant-decls
143
144$(OUTPUT)util/kallsyms.o: ../lib/symbol/kallsyms.c FORCE
Jiri Olsa19993072014-12-30 18:44:38 +0100145 $(call rule_mkdir)
Jiri Olsa9352aab2014-12-29 17:42:46 +0100146 $(call if_changed_dep,cc_o_c)
147
148$(OUTPUT)util/find_next_bit.o: ../lib/util/find_next_bit.c FORCE
Jiri Olsa19993072014-12-30 18:44:38 +0100149 $(call rule_mkdir)
Jiri Olsa9352aab2014-12-29 17:42:46 +0100150 $(call if_changed_dep,cc_o_c)
151
Arnaldo Carvalho de Melo3f735372015-07-05 22:48:21 -0300152$(OUTPUT)util/rbtree.o: ../lib/rbtree.c FORCE
Jiri Olsa19993072014-12-30 18:44:38 +0100153 $(call rule_mkdir)
Jiri Olsa9352aab2014-12-29 17:42:46 +0100154 $(call if_changed_dep,cc_o_c)
155
Arnaldo Carvalho de Melo0aefc352015-07-09 16:27:25 -0300156$(OUTPUT)util/hweight.o: ../lib/hweight.c FORCE
Jiri Olsa19993072014-12-30 18:44:38 +0100157 $(call rule_mkdir)
Jiri Olsa9352aab2014-12-29 17:42:46 +0100158 $(call if_changed_dep,cc_o_c)