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 |
| 8 | libperf-y += environment.o |
| 9 | libperf-y += event.o |
| 10 | libperf-y += evlist.o |
| 11 | libperf-y += evsel.o |
| 12 | libperf-y += exec_cmd.o |
| 13 | libperf-y += find_next_bit.o |
| 14 | libperf-y += help.o |
| 15 | libperf-y += kallsyms.o |
| 16 | libperf-y += levenshtein.o |
Wang Nan | aa61fd0 | 2015-07-21 11:13:34 +0000 | [diff] [blame] | 17 | libperf-y += llvm-utils.o |
Jiri Olsa | 9352aab | 2014-12-29 17:42:46 +0100 | [diff] [blame] | 18 | libperf-y += parse-options.o |
| 19 | libperf-y += parse-events.o |
| 20 | libperf-y += path.o |
| 21 | libperf-y += rbtree.o |
| 22 | libperf-y += bitmap.o |
| 23 | libperf-y += hweight.o |
| 24 | libperf-y += run-command.o |
| 25 | libperf-y += quote.o |
| 26 | libperf-y += strbuf.o |
| 27 | libperf-y += string.o |
| 28 | libperf-y += strlist.o |
| 29 | libperf-y += strfilter.o |
| 30 | libperf-y += top.o |
| 31 | libperf-y += usage.o |
| 32 | libperf-y += wrapper.o |
| 33 | libperf-y += sigchain.o |
| 34 | libperf-y += dso.o |
| 35 | libperf-y += symbol.o |
| 36 | libperf-y += color.o |
| 37 | libperf-y += pager.o |
| 38 | libperf-y += header.o |
| 39 | libperf-y += callchain.o |
| 40 | libperf-y += values.o |
| 41 | libperf-y += debug.o |
| 42 | libperf-y += machine.o |
| 43 | libperf-y += map.o |
| 44 | libperf-y += pstack.o |
| 45 | libperf-y += session.o |
| 46 | libperf-y += ordered-events.o |
| 47 | libperf-y += comm.o |
| 48 | libperf-y += thread.o |
| 49 | libperf-y += thread_map.o |
| 50 | libperf-y += trace-event-parse.o |
| 51 | libperf-y += parse-events-flex.o |
| 52 | libperf-y += parse-events-bison.o |
| 53 | libperf-y += pmu.o |
| 54 | libperf-y += pmu-flex.o |
| 55 | libperf-y += pmu-bison.o |
| 56 | libperf-y += trace-event-read.o |
| 57 | libperf-y += trace-event-info.o |
| 58 | libperf-y += trace-event-scripting.o |
| 59 | libperf-y += trace-event.o |
| 60 | libperf-y += svghelper.o |
| 61 | libperf-y += sort.o |
| 62 | libperf-y += hist.o |
| 63 | libperf-y += util.o |
| 64 | libperf-y += xyarray.o |
| 65 | libperf-y += cpumap.o |
| 66 | libperf-y += cgroup.o |
| 67 | libperf-y += target.o |
| 68 | libperf-y += rblist.o |
| 69 | libperf-y += intlist.o |
| 70 | libperf-y += vdso.o |
Jiri Olsa | d809560 | 2015-08-07 12:51:03 +0200 | [diff] [blame] | 71 | libperf-y += counts.o |
Jiri Olsa | 9352aab | 2014-12-29 17:42:46 +0100 | [diff] [blame] | 72 | libperf-y += stat.o |
Jiri Olsa | f87027b | 2015-06-03 16:25:59 +0200 | [diff] [blame] | 73 | libperf-y += stat-shadow.o |
Jiri Olsa | 9352aab | 2014-12-29 17:42:46 +0100 | [diff] [blame] | 74 | libperf-y += record.o |
| 75 | libperf-y += srcline.o |
| 76 | libperf-y += data.o |
David Ahern | ecefde6 | 2015-02-19 13:22:33 -0500 | [diff] [blame] | 77 | libperf-$(CONFIG_X86) += tsc.o |
Jiri Olsa | 9352aab | 2014-12-29 17:42:46 +0100 | [diff] [blame] | 78 | libperf-y += cloexec.o |
| 79 | libperf-y += thread-stack.o |
Adrian Hunter | e31f0d0 | 2015-04-30 17:37:27 +0300 | [diff] [blame] | 80 | libperf-$(CONFIG_AUXTRACE) += auxtrace.o |
Adrian Hunter | a4e9259 | 2015-07-17 19:33:37 +0300 | [diff] [blame] | 81 | libperf-$(CONFIG_AUXTRACE) += intel-pt-decoder/ |
Adrian Hunter | 90e457f | 2015-07-17 19:33:41 +0300 | [diff] [blame] | 82 | libperf-$(CONFIG_AUXTRACE) += intel-pt.o |
Adrian Hunter | d0170af | 2015-07-17 19:33:43 +0300 | [diff] [blame] | 83 | libperf-$(CONFIG_AUXTRACE) += intel-bts.o |
Andi Kleen | f00898f | 2015-05-27 10:51:51 -0700 | [diff] [blame] | 84 | libperf-y += parse-branch-options.o |
Jiri Olsa | 9352aab | 2014-12-29 17:42:46 +0100 | [diff] [blame] | 85 | |
Jiri Olsa | 709e679 | 2014-12-29 23:52:25 +0100 | [diff] [blame] | 86 | libperf-$(CONFIG_LIBELF) += symbol-elf.o |
Masami Hiramatsu | 92f6c72 | 2015-07-15 18:14:07 +0900 | [diff] [blame] | 87 | libperf-$(CONFIG_LIBELF) += probe-file.o |
Jiri Olsa | 709e679 | 2014-12-29 23:52:25 +0100 | [diff] [blame] | 88 | libperf-$(CONFIG_LIBELF) += probe-event.o |
| 89 | |
| 90 | ifndef CONFIG_LIBELF |
| 91 | libperf-y += symbol-minimal.o |
| 92 | endif |
| 93 | |
Jiri Olsa | 8379fce | 2014-12-30 00:06:25 +0100 | [diff] [blame] | 94 | libperf-$(CONFIG_DWARF) += probe-finder.o |
| 95 | libperf-$(CONFIG_DWARF) += dwarf-aux.o |
| 96 | |
Jiri Olsa | b2e45c3 | 2014-12-30 00:11:11 +0100 | [diff] [blame] | 97 | libperf-$(CONFIG_LIBDW_DWARF_UNWIND) += unwind-libdw.o |
| 98 | libperf-$(CONFIG_LIBUNWIND) += unwind-libunwind.o |
| 99 | |
Jiri Olsa | edbe981 | 2015-02-20 23:17:00 +0100 | [diff] [blame] | 100 | libperf-$(CONFIG_LIBBABELTRACE) += data-convert-bt.o |
| 101 | |
Jiri Olsa | c7355f8 | 2014-12-30 13:11:32 +0100 | [diff] [blame] | 102 | libperf-y += scripting-engines/ |
| 103 | |
Jiri Olsa | 3bc3374 | 2014-12-30 13:30:04 +0100 | [diff] [blame] | 104 | libperf-$(CONFIG_PERF_REGS) += perf_regs.o |
Jiri Olsa | 1571b69 | 2014-12-30 13:31:12 +0100 | [diff] [blame] | 105 | libperf-$(CONFIG_ZLIB) += zlib.o |
Jiri Olsa | 80a32e5b | 2015-01-29 13:29:39 +0100 | [diff] [blame] | 106 | libperf-$(CONFIG_LZMA) += lzma.o |
Jiri Olsa | 3bc3374 | 2014-12-30 13:30:04 +0100 | [diff] [blame] | 107 | |
Jiri Olsa | 9352aab | 2014-12-29 17:42:46 +0100 | [diff] [blame] | 108 | CFLAGS_config.o += -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))" |
| 109 | CFLAGS_exec_cmd.o += -DPERF_EXEC_PATH="BUILD_STR($(perfexecdir_SQ))" -DPREFIX="BUILD_STR($(prefix_SQ))" |
| 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))" |
| 137 | CFLAGS_hweight.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))" |
| 138 | CFLAGS_parse-events.o += -Wno-redundant-decls |
| 139 | |
| 140 | $(OUTPUT)util/kallsyms.o: ../lib/symbol/kallsyms.c FORCE |
Jiri Olsa | 1999307 | 2014-12-30 18:44:38 +0100 | [diff] [blame] | 141 | $(call rule_mkdir) |
Jiri Olsa | 9352aab | 2014-12-29 17:42:46 +0100 | [diff] [blame] | 142 | $(call if_changed_dep,cc_o_c) |
| 143 | |
| 144 | $(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] | 145 | $(call rule_mkdir) |
Jiri Olsa | 9352aab | 2014-12-29 17:42:46 +0100 | [diff] [blame] | 146 | $(call if_changed_dep,cc_o_c) |
| 147 | |
Arnaldo Carvalho de Melo | 3f73537 | 2015-07-05 22:48:21 -0300 | [diff] [blame] | 148 | $(OUTPUT)util/rbtree.o: ../lib/rbtree.c FORCE |
Jiri Olsa | 1999307 | 2014-12-30 18:44:38 +0100 | [diff] [blame] | 149 | $(call rule_mkdir) |
Jiri Olsa | 9352aab | 2014-12-29 17:42:46 +0100 | [diff] [blame] | 150 | $(call if_changed_dep,cc_o_c) |
| 151 | |
Arnaldo Carvalho de Melo | 0aefc35 | 2015-07-09 16:27:25 -0300 | [diff] [blame] | 152 | $(OUTPUT)util/hweight.o: ../lib/hweight.c FORCE |
Jiri Olsa | 1999307 | 2014-12-30 18:44:38 +0100 | [diff] [blame] | 153 | $(call rule_mkdir) |
Jiri Olsa | 9352aab | 2014-12-29 17:42:46 +0100 | [diff] [blame] | 154 | $(call if_changed_dep,cc_o_c) |