Jiri Olsa | 9352aab | 2014-12-29 17:42:46 +0100 | [diff] [blame] | 1 | libperf-y += alias.o |
| 2 | libperf-y += annotate.o |
Peter Zijlstra | 70fbe05 | 2016-09-05 16:08:12 -0300 | [diff] [blame] | 3 | libperf-y += block-range.o |
Jiri Olsa | 9352aab | 2014-12-29 17:42:46 +0100 | [diff] [blame] | 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 |
Arnaldo Carvalho de Melo | 25da4fa | 2016-04-14 19:45:01 -0300 | [diff] [blame] | 12 | libperf-y += evsel_fprintf.o |
Arnaldo Carvalho de Melo | 552eb975 | 2016-01-08 10:46:52 -0300 | [diff] [blame] | 13 | libperf-y += find_bit.o |
Jiri Olsa | 9352aab | 2014-12-29 17:42:46 +0100 | [diff] [blame] | 14 | libperf-y += kallsyms.o |
| 15 | libperf-y += levenshtein.o |
Wang Nan | aa61fd0 | 2015-07-21 11:13:34 +0000 | [diff] [blame] | 16 | libperf-y += llvm-utils.o |
Jiri Olsa | 9352aab | 2014-12-29 17:42:46 +0100 | [diff] [blame] | 17 | libperf-y += parse-events.o |
Sukadev Bhattiprolu | eb56db5 | 2015-09-24 17:53:49 -0400 | [diff] [blame] | 18 | libperf-y += perf_regs.o |
Jiri Olsa | 9352aab | 2014-12-29 17:42:46 +0100 | [diff] [blame] | 19 | libperf-y += path.o |
| 20 | libperf-y += rbtree.o |
Arnaldo Carvalho de Melo | 4ddd327 | 2015-11-16 11:36:29 -0300 | [diff] [blame] | 21 | libperf-y += libstring.o |
Jiri Olsa | 9352aab | 2014-12-29 17:42:46 +0100 | [diff] [blame] | 22 | libperf-y += bitmap.o |
| 23 | libperf-y += hweight.o |
Jiri Olsa | 9352aab | 2014-12-29 17:42:46 +0100 | [diff] [blame] | 24 | libperf-y += quote.o |
| 25 | libperf-y += strbuf.o |
| 26 | libperf-y += string.o |
| 27 | libperf-y += strlist.o |
| 28 | libperf-y += strfilter.o |
| 29 | libperf-y += top.o |
| 30 | libperf-y += usage.o |
Jiri Olsa | 9352aab | 2014-12-29 17:42:46 +0100 | [diff] [blame] | 31 | libperf-y += dso.o |
| 32 | libperf-y += symbol.o |
Arnaldo Carvalho de Melo | bfbba18 | 2016-04-14 15:54:36 -0300 | [diff] [blame] | 33 | libperf-y += symbol_fprintf.o |
Jiri Olsa | 9352aab | 2014-12-29 17:42:46 +0100 | [diff] [blame] | 34 | libperf-y += color.o |
Jiri Olsa | 9352aab | 2014-12-29 17:42:46 +0100 | [diff] [blame] | 35 | libperf-y += header.o |
| 36 | libperf-y += callchain.o |
| 37 | libperf-y += values.o |
| 38 | libperf-y += debug.o |
| 39 | libperf-y += machine.o |
| 40 | libperf-y += map.o |
| 41 | libperf-y += pstack.o |
| 42 | libperf-y += session.o |
Arnaldo Carvalho de Melo | fd0db10 | 2016-04-04 13:32:20 -0300 | [diff] [blame] | 43 | libperf-$(CONFIG_AUDIT) += syscalltbl.o |
Jiri Olsa | 9352aab | 2014-12-29 17:42:46 +0100 | [diff] [blame] | 44 | libperf-y += ordered-events.o |
| 45 | libperf-y += comm.o |
| 46 | libperf-y += thread.o |
| 47 | libperf-y += thread_map.o |
| 48 | libperf-y += trace-event-parse.o |
| 49 | libperf-y += parse-events-flex.o |
| 50 | libperf-y += parse-events-bison.o |
| 51 | libperf-y += pmu.o |
| 52 | libperf-y += pmu-flex.o |
| 53 | libperf-y += pmu-bison.o |
| 54 | libperf-y += trace-event-read.o |
| 55 | libperf-y += trace-event-info.o |
| 56 | libperf-y += trace-event-scripting.o |
| 57 | libperf-y += trace-event.o |
| 58 | libperf-y += svghelper.o |
| 59 | libperf-y += sort.o |
| 60 | libperf-y += hist.o |
| 61 | libperf-y += util.o |
| 62 | libperf-y += xyarray.o |
| 63 | libperf-y += cpumap.o |
| 64 | libperf-y += cgroup.o |
| 65 | libperf-y += target.o |
| 66 | libperf-y += rblist.o |
| 67 | libperf-y += intlist.o |
| 68 | libperf-y += vdso.o |
Jiri Olsa | d809560 | 2015-08-07 12:51:03 +0200 | [diff] [blame] | 69 | libperf-y += counts.o |
Jiri Olsa | 9352aab | 2014-12-29 17:42:46 +0100 | [diff] [blame] | 70 | libperf-y += stat.o |
Jiri Olsa | f87027b | 2015-06-03 16:25:59 +0200 | [diff] [blame] | 71 | libperf-y += stat-shadow.o |
Jiri Olsa | 9352aab | 2014-12-29 17:42:46 +0100 | [diff] [blame] | 72 | libperf-y += record.o |
| 73 | libperf-y += srcline.o |
| 74 | libperf-y += data.o |
Adrian Hunter | 2a28e23 | 2016-03-08 10:38:50 +0200 | [diff] [blame] | 75 | libperf-y += tsc.o |
Jiri Olsa | 9352aab | 2014-12-29 17:42:46 +0100 | [diff] [blame] | 76 | libperf-y += cloexec.o |
Chris Phlipot | 451db12 | 2016-04-28 01:19:07 -0700 | [diff] [blame] | 77 | libperf-y += call-path.o |
Jiri Olsa | 9352aab | 2014-12-29 17:42:46 +0100 | [diff] [blame] | 78 | libperf-y += thread-stack.o |
Adrian Hunter | e31f0d0 | 2015-04-30 17:37:27 +0300 | [diff] [blame] | 79 | libperf-$(CONFIG_AUXTRACE) += auxtrace.o |
Adrian Hunter | a4e9259 | 2015-07-17 19:33:37 +0300 | [diff] [blame] | 80 | libperf-$(CONFIG_AUXTRACE) += intel-pt-decoder/ |
Adrian Hunter | 90e457f | 2015-07-17 19:33:41 +0300 | [diff] [blame] | 81 | libperf-$(CONFIG_AUXTRACE) += intel-pt.o |
Adrian Hunter | d0170af | 2015-07-17 19:33:43 +0300 | [diff] [blame] | 82 | libperf-$(CONFIG_AUXTRACE) += intel-bts.o |
Andi Kleen | f00898f | 2015-05-27 10:51:51 -0700 | [diff] [blame] | 83 | libperf-y += parse-branch-options.o |
Stephane Eranian | bcc84ec | 2015-08-31 18:41:12 +0200 | [diff] [blame] | 84 | libperf-y += parse-regs-options.o |
Josh Poimboeuf | 1fe143c | 2015-12-07 22:21:42 -0600 | [diff] [blame] | 85 | libperf-y += term.o |
Josh Poimboeuf | 5feaac2 | 2015-12-13 22:18:09 -0600 | [diff] [blame] | 86 | libperf-y += help-unknown-cmd.o |
Jiri Olsa | acbe613 | 2016-02-15 09:34:34 +0100 | [diff] [blame] | 87 | libperf-y += mem-events.o |
Arnaldo Carvalho de Melo | d0761e3 | 2016-07-07 15:42:33 -0300 | [diff] [blame] | 88 | libperf-y += vsprintf.o |
Mathieu Poirier | 859442b | 2016-09-16 09:50:02 -0600 | [diff] [blame] | 89 | libperf-y += drv_configs.o |
Jiri Olsa | 9352aab | 2014-12-29 17:42:46 +0100 | [diff] [blame] | 90 | |
Wang Nan | 84c86ca | 2015-10-14 12:41:14 +0000 | [diff] [blame] | 91 | libperf-$(CONFIG_LIBBPF) += bpf-loader.o |
He Kuang | bfc077b | 2015-11-16 12:10:12 +0000 | [diff] [blame] | 92 | libperf-$(CONFIG_BPF_PROLOGUE) += bpf-prologue.o |
Jiri Olsa | 709e679 | 2014-12-29 23:52:25 +0100 | [diff] [blame] | 93 | libperf-$(CONFIG_LIBELF) += symbol-elf.o |
Masami Hiramatsu | 92f6c72 | 2015-07-15 18:14:07 +0900 | [diff] [blame] | 94 | libperf-$(CONFIG_LIBELF) += probe-file.o |
Jiri Olsa | 709e679 | 2014-12-29 23:52:25 +0100 | [diff] [blame] | 95 | libperf-$(CONFIG_LIBELF) += probe-event.o |
| 96 | |
| 97 | ifndef CONFIG_LIBELF |
| 98 | libperf-y += symbol-minimal.o |
| 99 | endif |
| 100 | |
Jiri Olsa | 8379fce | 2014-12-30 00:06:25 +0100 | [diff] [blame] | 101 | libperf-$(CONFIG_DWARF) += probe-finder.o |
| 102 | libperf-$(CONFIG_DWARF) += dwarf-aux.o |
Masami Hiramatsu | 293d5b4 | 2016-08-26 01:24:57 +0900 | [diff] [blame] | 103 | libperf-$(CONFIG_DWARF) += dwarf-regs.o |
Jiri Olsa | 8379fce | 2014-12-30 00:06:25 +0100 | [diff] [blame] | 104 | |
Jiri Olsa | b2e45c3 | 2014-12-30 00:11:11 +0100 | [diff] [blame] | 105 | libperf-$(CONFIG_LIBDW_DWARF_UNWIND) += unwind-libdw.o |
He Kuang | a597b54 | 2016-06-03 03:33:16 +0000 | [diff] [blame] | 106 | libperf-$(CONFIG_LOCAL_LIBUNWIND) += unwind-libunwind-local.o |
He Kuang | f6d7253 | 2016-06-03 03:33:17 +0000 | [diff] [blame] | 107 | libperf-$(CONFIG_LIBUNWIND) += unwind-libunwind.o |
He Kuang | 52ffe0f | 2016-06-03 03:33:22 +0000 | [diff] [blame] | 108 | libperf-$(CONFIG_LIBUNWIND_X86) += libunwind/x86_32.o |
He Kuang | 057fbfb | 2016-06-03 03:33:23 +0000 | [diff] [blame] | 109 | libperf-$(CONFIG_LIBUNWIND_AARCH64) += libunwind/arm64.o |
Jiri Olsa | b2e45c3 | 2014-12-30 00:11:11 +0100 | [diff] [blame] | 110 | |
Jiri Olsa | edbe981 | 2015-02-20 23:17:00 +0100 | [diff] [blame] | 111 | libperf-$(CONFIG_LIBBABELTRACE) += data-convert-bt.o |
| 112 | |
Jiri Olsa | c7355f8 | 2014-12-30 13:11:32 +0100 | [diff] [blame] | 113 | libperf-y += scripting-engines/ |
| 114 | |
Jiri Olsa | 1571b69 | 2014-12-30 13:31:12 +0100 | [diff] [blame] | 115 | libperf-$(CONFIG_ZLIB) += zlib.o |
Jiri Olsa | 80a32e5b | 2015-01-29 13:29:39 +0100 | [diff] [blame] | 116 | libperf-$(CONFIG_LZMA) += lzma.o |
Stephane Eranian | e9c4bcd | 2015-11-30 10:02:20 +0100 | [diff] [blame] | 117 | libperf-y += demangle-java.o |
David Tolnay | cae15db | 2016-07-09 00:20:00 -0700 | [diff] [blame] | 118 | libperf-y += demangle-rust.o |
Arnaldo Carvalho de Melo | 46dad05 | 2016-03-07 18:48:45 -0300 | [diff] [blame] | 119 | |
Jiri Olsa | e12b202 | 2016-03-10 17:41:13 +0100 | [diff] [blame] | 120 | ifdef CONFIG_JITDUMP |
Stephane Eranian | 9b07e27 | 2015-11-30 10:02:21 +0100 | [diff] [blame] | 121 | libperf-$(CONFIG_LIBELF) += jitdump.o |
| 122 | libperf-$(CONFIG_LIBELF) += genelf.o |
Maciej Debski | 621cb4e | 2016-10-13 03:59:36 -0700 | [diff] [blame] | 123 | libperf-$(CONFIG_DWARF) += genelf_debug.o |
Arnaldo Carvalho de Melo | 46dad05 | 2016-03-07 18:48:45 -0300 | [diff] [blame] | 124 | endif |
Jiri Olsa | 3bc3374 | 2014-12-30 13:30:04 +0100 | [diff] [blame] | 125 | |
Wang Nan | a074865 | 2016-11-26 07:03:28 +0000 | [diff] [blame^] | 126 | libperf-y += perf-hooks.o |
| 127 | |
Jiri Olsa | 9352aab | 2014-12-29 17:42:46 +0100 | [diff] [blame] | 128 | CFLAGS_config.o += -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))" |
Stephane Eranian | 598b7c6 | 2015-11-30 10:02:23 +0100 | [diff] [blame] | 129 | # avoid compiler warnings in 32-bit mode |
| 130 | CFLAGS_genelf_debug.o += -Wno-packed |
Jiri Olsa | 9352aab | 2014-12-29 17:42:46 +0100 | [diff] [blame] | 131 | |
| 132 | $(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] | 133 | $(call rule_mkdir) |
Jiri Olsa | 70923bd | 2015-05-14 12:31:48 -0300 | [diff] [blame] | 134 | $(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] | 135 | |
| 136 | $(OUTPUT)util/parse-events-bison.c: util/parse-events.y |
Jiri Olsa | 1999307 | 2014-12-30 18:44:38 +0100 | [diff] [blame] | 137 | $(call rule_mkdir) |
Jiri Olsa | 70923bd | 2015-05-14 12:31:48 -0300 | [diff] [blame] | 138 | $(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] | 139 | |
| 140 | $(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] | 141 | $(call rule_mkdir) |
Jiri Olsa | 70923bd | 2015-05-14 12:31:48 -0300 | [diff] [blame] | 142 | $(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] | 143 | |
| 144 | $(OUTPUT)util/pmu-bison.c: util/pmu.y |
Jiri Olsa | 1999307 | 2014-12-30 18:44:38 +0100 | [diff] [blame] | 145 | $(call rule_mkdir) |
Jiri Olsa | 70923bd | 2015-05-14 12:31:48 -0300 | [diff] [blame] | 146 | $(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] | 147 | |
| 148 | CFLAGS_parse-events-flex.o += -w |
| 149 | CFLAGS_pmu-flex.o += -w |
Namhyung Kim | 539f3aa | 2015-04-29 12:55:00 -0300 | [diff] [blame] | 150 | CFLAGS_parse-events-bison.o += -DYYENABLE_NLS=0 -w |
Jiri Olsa | 9352aab | 2014-12-29 17:42:46 +0100 | [diff] [blame] | 151 | CFLAGS_pmu-bison.o += -DYYENABLE_NLS=0 -DYYLTYPE_IS_TRIVIAL=0 -w |
| 152 | |
| 153 | $(OUTPUT)util/parse-events.o: $(OUTPUT)util/parse-events-flex.c $(OUTPUT)util/parse-events-bison.c |
| 154 | $(OUTPUT)util/pmu.o: $(OUTPUT)util/pmu-flex.c $(OUTPUT)util/pmu-bison.c |
| 155 | |
Arnaldo Carvalho de Melo | 915b088 | 2016-01-08 12:33:37 -0300 | [diff] [blame] | 156 | CFLAGS_bitmap.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))" |
Arnaldo Carvalho de Melo | 552eb975 | 2016-01-08 10:46:52 -0300 | [diff] [blame] | 157 | CFLAGS_find_bit.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))" |
Jiri Olsa | 9352aab | 2014-12-29 17:42:46 +0100 | [diff] [blame] | 158 | 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] | 159 | 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] | 160 | CFLAGS_hweight.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))" |
| 161 | CFLAGS_parse-events.o += -Wno-redundant-decls |
| 162 | |
| 163 | $(OUTPUT)util/kallsyms.o: ../lib/symbol/kallsyms.c FORCE |
Jiri Olsa | 1999307 | 2014-12-30 18:44:38 +0100 | [diff] [blame] | 164 | $(call rule_mkdir) |
Jiri Olsa | 9352aab | 2014-12-29 17:42:46 +0100 | [diff] [blame] | 165 | $(call if_changed_dep,cc_o_c) |
| 166 | |
Arnaldo Carvalho de Melo | 915b088 | 2016-01-08 12:33:37 -0300 | [diff] [blame] | 167 | $(OUTPUT)util/bitmap.o: ../lib/bitmap.c FORCE |
| 168 | $(call rule_mkdir) |
| 169 | $(call if_changed_dep,cc_o_c) |
| 170 | |
Arnaldo Carvalho de Melo | 552eb975 | 2016-01-08 10:46:52 -0300 | [diff] [blame] | 171 | $(OUTPUT)util/find_bit.o: ../lib/find_bit.c FORCE |
Jiri Olsa | 1999307 | 2014-12-30 18:44:38 +0100 | [diff] [blame] | 172 | $(call rule_mkdir) |
Jiri Olsa | 9352aab | 2014-12-29 17:42:46 +0100 | [diff] [blame] | 173 | $(call if_changed_dep,cc_o_c) |
| 174 | |
Arnaldo Carvalho de Melo | 3f73537 | 2015-07-05 22:48:21 -0300 | [diff] [blame] | 175 | $(OUTPUT)util/rbtree.o: ../lib/rbtree.c FORCE |
Jiri Olsa | 1999307 | 2014-12-30 18:44:38 +0100 | [diff] [blame] | 176 | $(call rule_mkdir) |
Jiri Olsa | 9352aab | 2014-12-29 17:42:46 +0100 | [diff] [blame] | 177 | $(call if_changed_dep,cc_o_c) |
| 178 | |
Arnaldo Carvalho de Melo | 4ddd327 | 2015-11-16 11:36:29 -0300 | [diff] [blame] | 179 | $(OUTPUT)util/libstring.o: ../lib/string.c FORCE |
| 180 | $(call rule_mkdir) |
| 181 | $(call if_changed_dep,cc_o_c) |
| 182 | |
Arnaldo Carvalho de Melo | 0aefc35 | 2015-07-09 16:27:25 -0300 | [diff] [blame] | 183 | $(OUTPUT)util/hweight.o: ../lib/hweight.c FORCE |
Jiri Olsa | 1999307 | 2014-12-30 18:44:38 +0100 | [diff] [blame] | 184 | $(call rule_mkdir) |
Jiri Olsa | 9352aab | 2014-12-29 17:42:46 +0100 | [diff] [blame] | 185 | $(call if_changed_dep,cc_o_c) |
Arnaldo Carvalho de Melo | d0761e3 | 2016-07-07 15:42:33 -0300 | [diff] [blame] | 186 | |
| 187 | $(OUTPUT)util/vsprintf.o: ../lib/vsprintf.c FORCE |
| 188 | $(call rule_mkdir) |
| 189 | $(call if_changed_dep,cc_o_c) |