Jiri Olsa | 9352aab | 2014-12-29 17:42:46 +0100 | [diff] [blame] | 1 | libperf-y += abspath.o |
| 2 | libperf-y += alias.o |
| 3 | libperf-y += annotate.o |
| 4 | libperf-y += build-id.o |
| 5 | libperf-y += config.o |
| 6 | libperf-y += ctype.o |
| 7 | libperf-y += db-export.o |
Arnaldo Carvalho de Melo | f0ce888 | 2015-09-08 13:30:00 -0300 | [diff] [blame] | 8 | libperf-y += env.o |
Jiri Olsa | 9352aab | 2014-12-29 17:42:46 +0100 | [diff] [blame] | 9 | libperf-y += event.o |
| 10 | libperf-y += evlist.o |
| 11 | libperf-y += evsel.o |
Jiri Olsa | 9352aab | 2014-12-29 17:42:46 +0100 | [diff] [blame] | 12 | libperf-y += find_next_bit.o |
Jiri Olsa | 9352aab | 2014-12-29 17:42:46 +0100 | [diff] [blame] | 13 | libperf-y += kallsyms.o |
| 14 | libperf-y += levenshtein.o |
Wang Nan | aa61fd0 | 2015-07-21 11:13:34 +0000 | [diff] [blame] | 15 | libperf-y += llvm-utils.o |
Jiri Olsa | 9352aab | 2014-12-29 17:42:46 +0100 | [diff] [blame] | 16 | libperf-y += parse-events.o |
Sukadev Bhattiprolu | eb56db5 | 2015-09-24 17:53:49 -0400 | [diff] [blame] | 17 | libperf-y += perf_regs.o |
Jiri Olsa | 9352aab | 2014-12-29 17:42:46 +0100 | [diff] [blame] | 18 | libperf-y += path.o |
| 19 | libperf-y += rbtree.o |
Arnaldo Carvalho de Melo | 4ddd327 | 2015-11-16 11:36:29 -0300 | [diff] [blame] | 20 | libperf-y += libstring.o |
Jiri Olsa | 9352aab | 2014-12-29 17:42:46 +0100 | [diff] [blame] | 21 | libperf-y += bitmap.o |
| 22 | libperf-y += hweight.o |
Jiri Olsa | 9352aab | 2014-12-29 17:42:46 +0100 | [diff] [blame] | 23 | libperf-y += quote.o |
| 24 | libperf-y += strbuf.o |
| 25 | libperf-y += string.o |
| 26 | libperf-y += strlist.o |
| 27 | libperf-y += strfilter.o |
| 28 | libperf-y += top.o |
| 29 | libperf-y += usage.o |
| 30 | libperf-y += wrapper.o |
Jiri Olsa | 9352aab | 2014-12-29 17:42:46 +0100 | [diff] [blame] | 31 | libperf-y += dso.o |
| 32 | libperf-y += symbol.o |
| 33 | libperf-y += color.o |
Jiri Olsa | 9352aab | 2014-12-29 17:42:46 +0100 | [diff] [blame] | 34 | libperf-y += header.o |
| 35 | libperf-y += callchain.o |
| 36 | libperf-y += values.o |
| 37 | libperf-y += debug.o |
| 38 | libperf-y += machine.o |
| 39 | libperf-y += map.o |
| 40 | libperf-y += pstack.o |
| 41 | libperf-y += session.o |
| 42 | libperf-y += ordered-events.o |
| 43 | libperf-y += comm.o |
| 44 | libperf-y += thread.o |
| 45 | libperf-y += thread_map.o |
| 46 | libperf-y += trace-event-parse.o |
| 47 | libperf-y += parse-events-flex.o |
| 48 | libperf-y += parse-events-bison.o |
| 49 | libperf-y += pmu.o |
| 50 | libperf-y += pmu-flex.o |
| 51 | libperf-y += pmu-bison.o |
| 52 | libperf-y += trace-event-read.o |
| 53 | libperf-y += trace-event-info.o |
| 54 | libperf-y += trace-event-scripting.o |
| 55 | libperf-y += trace-event.o |
| 56 | libperf-y += svghelper.o |
| 57 | libperf-y += sort.o |
| 58 | libperf-y += hist.o |
| 59 | libperf-y += util.o |
| 60 | libperf-y += xyarray.o |
| 61 | libperf-y += cpumap.o |
| 62 | libperf-y += cgroup.o |
| 63 | libperf-y += target.o |
| 64 | libperf-y += rblist.o |
| 65 | libperf-y += intlist.o |
| 66 | libperf-y += vdso.o |
Jiri Olsa | d809560 | 2015-08-07 12:51:03 +0200 | [diff] [blame] | 67 | libperf-y += counts.o |
Jiri Olsa | 9352aab | 2014-12-29 17:42:46 +0100 | [diff] [blame] | 68 | libperf-y += stat.o |
Jiri Olsa | f87027b | 2015-06-03 16:25:59 +0200 | [diff] [blame] | 69 | libperf-y += stat-shadow.o |
Jiri Olsa | 9352aab | 2014-12-29 17:42:46 +0100 | [diff] [blame] | 70 | libperf-y += record.o |
| 71 | libperf-y += srcline.o |
| 72 | libperf-y += data.o |
David Ahern | ecefde6 | 2015-02-19 13:22:33 -0500 | [diff] [blame] | 73 | libperf-$(CONFIG_X86) += tsc.o |
Adrian Hunter | 97db620 | 2015-08-31 21:39:44 +0300 | [diff] [blame] | 74 | libperf-$(CONFIG_AUXTRACE) += tsc.o |
Jiri Olsa | 9352aab | 2014-12-29 17:42:46 +0100 | [diff] [blame] | 75 | libperf-y += cloexec.o |
| 76 | libperf-y += thread-stack.o |
Adrian Hunter | e31f0d0 | 2015-04-30 17:37:27 +0300 | [diff] [blame] | 77 | libperf-$(CONFIG_AUXTRACE) += auxtrace.o |
Adrian Hunter | a4e9259 | 2015-07-17 19:33:37 +0300 | [diff] [blame] | 78 | libperf-$(CONFIG_AUXTRACE) += intel-pt-decoder/ |
Adrian Hunter | 90e457f | 2015-07-17 19:33:41 +0300 | [diff] [blame] | 79 | libperf-$(CONFIG_AUXTRACE) += intel-pt.o |
Adrian Hunter | d0170af | 2015-07-17 19:33:43 +0300 | [diff] [blame] | 80 | libperf-$(CONFIG_AUXTRACE) += intel-bts.o |
Andi Kleen | f00898f | 2015-05-27 10:51:51 -0700 | [diff] [blame] | 81 | libperf-y += parse-branch-options.o |
Stephane Eranian | bcc84ec | 2015-08-31 18:41:12 +0200 | [diff] [blame] | 82 | libperf-y += parse-regs-options.o |
Josh Poimboeuf | 1fe143c | 2015-12-07 22:21:42 -0600 | [diff] [blame] | 83 | libperf-y += term.o |
Josh Poimboeuf | 5feaac2 | 2015-12-13 22:18:09 -0600 | [diff] [blame] | 84 | libperf-y += help-unknown-cmd.o |
Jiri Olsa | 9352aab | 2014-12-29 17:42:46 +0100 | [diff] [blame] | 85 | |
Wang Nan | 84c86ca | 2015-10-14 12:41:14 +0000 | [diff] [blame] | 86 | libperf-$(CONFIG_LIBBPF) += bpf-loader.o |
He Kuang | bfc077b | 2015-11-16 12:10:12 +0000 | [diff] [blame] | 87 | libperf-$(CONFIG_BPF_PROLOGUE) += bpf-prologue.o |
Jiri Olsa | 709e679 | 2014-12-29 23:52:25 +0100 | [diff] [blame] | 88 | libperf-$(CONFIG_LIBELF) += symbol-elf.o |
Masami Hiramatsu | 92f6c72 | 2015-07-15 18:14:07 +0900 | [diff] [blame] | 89 | libperf-$(CONFIG_LIBELF) += probe-file.o |
Jiri Olsa | 709e679 | 2014-12-29 23:52:25 +0100 | [diff] [blame] | 90 | libperf-$(CONFIG_LIBELF) += probe-event.o |
| 91 | |
| 92 | ifndef CONFIG_LIBELF |
| 93 | libperf-y += symbol-minimal.o |
| 94 | endif |
| 95 | |
Jiri Olsa | 8379fce | 2014-12-30 00:06:25 +0100 | [diff] [blame] | 96 | libperf-$(CONFIG_DWARF) += probe-finder.o |
| 97 | libperf-$(CONFIG_DWARF) += dwarf-aux.o |
| 98 | |
Jiri Olsa | b2e45c3 | 2014-12-30 00:11:11 +0100 | [diff] [blame] | 99 | libperf-$(CONFIG_LIBDW_DWARF_UNWIND) += unwind-libdw.o |
| 100 | libperf-$(CONFIG_LIBUNWIND) += unwind-libunwind.o |
| 101 | |
Jiri Olsa | edbe981 | 2015-02-20 23:17:00 +0100 | [diff] [blame] | 102 | libperf-$(CONFIG_LIBBABELTRACE) += data-convert-bt.o |
| 103 | |
Jiri Olsa | c7355f8 | 2014-12-30 13:11:32 +0100 | [diff] [blame] | 104 | libperf-y += scripting-engines/ |
| 105 | |
Jiri Olsa | 1571b69 | 2014-12-30 13:31:12 +0100 | [diff] [blame] | 106 | libperf-$(CONFIG_ZLIB) += zlib.o |
Jiri Olsa | 80a32e5b | 2015-01-29 13:29:39 +0100 | [diff] [blame] | 107 | libperf-$(CONFIG_LZMA) += lzma.o |
Jiri Olsa | 3bc3374 | 2014-12-30 13:30:04 +0100 | [diff] [blame] | 108 | |
Jiri Olsa | 9352aab | 2014-12-29 17:42:46 +0100 | [diff] [blame] | 109 | CFLAGS_config.o += -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))" |
Jiri Olsa | 9352aab | 2014-12-29 17:42:46 +0100 | [diff] [blame] | 110 | |
| 111 | $(OUTPUT)util/parse-events-flex.c: util/parse-events.l $(OUTPUT)util/parse-events-bison.c |
Jiri Olsa | 1999307 | 2014-12-30 18:44:38 +0100 | [diff] [blame] | 112 | $(call rule_mkdir) |
Jiri Olsa | 70923bd | 2015-05-14 12:31:48 -0300 | [diff] [blame] | 113 | $(Q)$(call echo-cmd,flex)$(FLEX) -o $@ --header-file=$(OUTPUT)util/parse-events-flex.h $(PARSER_DEBUG_FLEX) util/parse-events.l |
Jiri Olsa | 9352aab | 2014-12-29 17:42:46 +0100 | [diff] [blame] | 114 | |
| 115 | $(OUTPUT)util/parse-events-bison.c: util/parse-events.y |
Jiri Olsa | 1999307 | 2014-12-30 18:44:38 +0100 | [diff] [blame] | 116 | $(call rule_mkdir) |
Jiri Olsa | 70923bd | 2015-05-14 12:31:48 -0300 | [diff] [blame] | 117 | $(Q)$(call echo-cmd,bison)$(BISON) -v util/parse-events.y -d $(PARSER_DEBUG_BISON) -o $@ -p parse_events_ |
Jiri Olsa | 9352aab | 2014-12-29 17:42:46 +0100 | [diff] [blame] | 118 | |
| 119 | $(OUTPUT)util/pmu-flex.c: util/pmu.l $(OUTPUT)util/pmu-bison.c |
Jiri Olsa | 1999307 | 2014-12-30 18:44:38 +0100 | [diff] [blame] | 120 | $(call rule_mkdir) |
Jiri Olsa | 70923bd | 2015-05-14 12:31:48 -0300 | [diff] [blame] | 121 | $(Q)$(call echo-cmd,flex)$(FLEX) -o $@ --header-file=$(OUTPUT)util/pmu-flex.h util/pmu.l |
Jiri Olsa | 9352aab | 2014-12-29 17:42:46 +0100 | [diff] [blame] | 122 | |
| 123 | $(OUTPUT)util/pmu-bison.c: util/pmu.y |
Jiri Olsa | 1999307 | 2014-12-30 18:44:38 +0100 | [diff] [blame] | 124 | $(call rule_mkdir) |
Jiri Olsa | 70923bd | 2015-05-14 12:31:48 -0300 | [diff] [blame] | 125 | $(Q)$(call echo-cmd,bison)$(BISON) -v util/pmu.y -d -o $@ -p perf_pmu_ |
Jiri Olsa | 9352aab | 2014-12-29 17:42:46 +0100 | [diff] [blame] | 126 | |
| 127 | CFLAGS_parse-events-flex.o += -w |
| 128 | CFLAGS_pmu-flex.o += -w |
Namhyung Kim | 539f3aa | 2015-04-29 12:55:00 -0300 | [diff] [blame] | 129 | CFLAGS_parse-events-bison.o += -DYYENABLE_NLS=0 -w |
Jiri Olsa | 9352aab | 2014-12-29 17:42:46 +0100 | [diff] [blame] | 130 | CFLAGS_pmu-bison.o += -DYYENABLE_NLS=0 -DYYLTYPE_IS_TRIVIAL=0 -w |
| 131 | |
| 132 | $(OUTPUT)util/parse-events.o: $(OUTPUT)util/parse-events-flex.c $(OUTPUT)util/parse-events-bison.c |
| 133 | $(OUTPUT)util/pmu.o: $(OUTPUT)util/pmu-flex.c $(OUTPUT)util/pmu-bison.c |
| 134 | |
| 135 | CFLAGS_find_next_bit.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))" |
| 136 | CFLAGS_rbtree.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))" |
Arnaldo Carvalho de Melo | 4ddd327 | 2015-11-16 11:36:29 -0300 | [diff] [blame] | 137 | CFLAGS_libstring.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))" |
Jiri Olsa | 9352aab | 2014-12-29 17:42:46 +0100 | [diff] [blame] | 138 | CFLAGS_hweight.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))" |
| 139 | CFLAGS_parse-events.o += -Wno-redundant-decls |
| 140 | |
| 141 | $(OUTPUT)util/kallsyms.o: ../lib/symbol/kallsyms.c FORCE |
Jiri Olsa | 1999307 | 2014-12-30 18:44:38 +0100 | [diff] [blame] | 142 | $(call rule_mkdir) |
Jiri Olsa | 9352aab | 2014-12-29 17:42:46 +0100 | [diff] [blame] | 143 | $(call if_changed_dep,cc_o_c) |
| 144 | |
| 145 | $(OUTPUT)util/find_next_bit.o: ../lib/util/find_next_bit.c FORCE |
Jiri Olsa | 1999307 | 2014-12-30 18:44:38 +0100 | [diff] [blame] | 146 | $(call rule_mkdir) |
Jiri Olsa | 9352aab | 2014-12-29 17:42:46 +0100 | [diff] [blame] | 147 | $(call if_changed_dep,cc_o_c) |
| 148 | |
Arnaldo Carvalho de Melo | 3f73537 | 2015-07-05 22:48:21 -0300 | [diff] [blame] | 149 | $(OUTPUT)util/rbtree.o: ../lib/rbtree.c FORCE |
Jiri Olsa | 1999307 | 2014-12-30 18:44:38 +0100 | [diff] [blame] | 150 | $(call rule_mkdir) |
Jiri Olsa | 9352aab | 2014-12-29 17:42:46 +0100 | [diff] [blame] | 151 | $(call if_changed_dep,cc_o_c) |
| 152 | |
Arnaldo Carvalho de Melo | 4ddd327 | 2015-11-16 11:36:29 -0300 | [diff] [blame] | 153 | $(OUTPUT)util/libstring.o: ../lib/string.c FORCE |
| 154 | $(call rule_mkdir) |
| 155 | $(call if_changed_dep,cc_o_c) |
| 156 | |
Arnaldo Carvalho de Melo | 0aefc35 | 2015-07-09 16:27:25 -0300 | [diff] [blame] | 157 | $(OUTPUT)util/hweight.o: ../lib/hweight.c FORCE |
Jiri Olsa | 1999307 | 2014-12-30 18:44:38 +0100 | [diff] [blame] | 158 | $(call rule_mkdir) |
Jiri Olsa | 9352aab | 2014-12-29 17:42:46 +0100 | [diff] [blame] | 159 | $(call if_changed_dep,cc_o_c) |