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 |
| 17 | libperf-y += parse-options.o |
| 18 | libperf-y += parse-events.o |
| 19 | libperf-y += path.o |
| 20 | libperf-y += rbtree.o |
| 21 | libperf-y += bitmap.o |
| 22 | libperf-y += hweight.o |
| 23 | libperf-y += run-command.o |
| 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 |
| 31 | libperf-y += wrapper.o |
| 32 | libperf-y += sigchain.o |
| 33 | libperf-y += dso.o |
| 34 | libperf-y += symbol.o |
| 35 | libperf-y += color.o |
| 36 | libperf-y += pager.o |
| 37 | libperf-y += header.o |
| 38 | libperf-y += callchain.o |
| 39 | libperf-y += values.o |
| 40 | libperf-y += debug.o |
| 41 | libperf-y += machine.o |
| 42 | libperf-y += map.o |
| 43 | libperf-y += pstack.o |
| 44 | libperf-y += session.o |
| 45 | libperf-y += ordered-events.o |
| 46 | libperf-y += comm.o |
| 47 | libperf-y += thread.o |
| 48 | libperf-y += thread_map.o |
| 49 | libperf-y += trace-event-parse.o |
| 50 | libperf-y += parse-events-flex.o |
| 51 | libperf-y += parse-events-bison.o |
| 52 | libperf-y += pmu.o |
| 53 | libperf-y += pmu-flex.o |
| 54 | libperf-y += pmu-bison.o |
| 55 | libperf-y += trace-event-read.o |
| 56 | libperf-y += trace-event-info.o |
| 57 | libperf-y += trace-event-scripting.o |
| 58 | libperf-y += trace-event.o |
| 59 | libperf-y += svghelper.o |
| 60 | libperf-y += sort.o |
| 61 | libperf-y += hist.o |
| 62 | libperf-y += util.o |
| 63 | libperf-y += xyarray.o |
| 64 | libperf-y += cpumap.o |
| 65 | libperf-y += cgroup.o |
| 66 | libperf-y += target.o |
| 67 | libperf-y += rblist.o |
| 68 | libperf-y += intlist.o |
| 69 | libperf-y += vdso.o |
| 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 |
David Ahern | ecefde6 | 2015-02-19 13:22:33 -0500 | [diff] [blame] | 75 | libperf-$(CONFIG_X86) += tsc.o |
Jiri Olsa | 9352aab | 2014-12-29 17:42:46 +0100 | [diff] [blame] | 76 | libperf-y += cloexec.o |
| 77 | libperf-y += thread-stack.o |
Adrian Hunter | e31f0d0 | 2015-04-30 17:37:27 +0300 | [diff] [blame] | 78 | libperf-$(CONFIG_AUXTRACE) += auxtrace.o |
Andi Kleen | f00898f | 2015-05-27 10:51:51 -0700 | [diff] [blame] | 79 | libperf-y += parse-branch-options.o |
Jiri Olsa | 9352aab | 2014-12-29 17:42:46 +0100 | [diff] [blame] | 80 | |
Jiri Olsa | 709e679 | 2014-12-29 23:52:25 +0100 | [diff] [blame] | 81 | libperf-$(CONFIG_LIBELF) += symbol-elf.o |
| 82 | libperf-$(CONFIG_LIBELF) += probe-event.o |
| 83 | |
| 84 | ifndef CONFIG_LIBELF |
| 85 | libperf-y += symbol-minimal.o |
| 86 | endif |
| 87 | |
Jiri Olsa | 8379fce | 2014-12-30 00:06:25 +0100 | [diff] [blame] | 88 | libperf-$(CONFIG_DWARF) += probe-finder.o |
| 89 | libperf-$(CONFIG_DWARF) += dwarf-aux.o |
| 90 | |
Jiri Olsa | b2e45c3 | 2014-12-30 00:11:11 +0100 | [diff] [blame] | 91 | libperf-$(CONFIG_LIBDW_DWARF_UNWIND) += unwind-libdw.o |
| 92 | libperf-$(CONFIG_LIBUNWIND) += unwind-libunwind.o |
| 93 | |
Jiri Olsa | edbe981 | 2015-02-20 23:17:00 +0100 | [diff] [blame] | 94 | libperf-$(CONFIG_LIBBABELTRACE) += data-convert-bt.o |
| 95 | |
Jiri Olsa | c7355f8 | 2014-12-30 13:11:32 +0100 | [diff] [blame] | 96 | libperf-y += scripting-engines/ |
| 97 | |
Jiri Olsa | 3bc3374 | 2014-12-30 13:30:04 +0100 | [diff] [blame] | 98 | libperf-$(CONFIG_PERF_REGS) += perf_regs.o |
Jiri Olsa | 1571b69 | 2014-12-30 13:31:12 +0100 | [diff] [blame] | 99 | libperf-$(CONFIG_ZLIB) += zlib.o |
Jiri Olsa | 80a32e5b | 2015-01-29 13:29:39 +0100 | [diff] [blame] | 100 | libperf-$(CONFIG_LZMA) += lzma.o |
Jiri Olsa | 3bc3374 | 2014-12-30 13:30:04 +0100 | [diff] [blame] | 101 | |
Jiri Olsa | 9352aab | 2014-12-29 17:42:46 +0100 | [diff] [blame] | 102 | CFLAGS_config.o += -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))" |
| 103 | CFLAGS_exec_cmd.o += -DPERF_EXEC_PATH="BUILD_STR($(perfexecdir_SQ))" -DPREFIX="BUILD_STR($(prefix_SQ))" |
| 104 | |
| 105 | $(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] | 106 | $(call rule_mkdir) |
Jiri Olsa | 70923bd | 2015-05-14 12:31:48 -0300 | [diff] [blame] | 107 | $(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] | 108 | |
| 109 | $(OUTPUT)util/parse-events-bison.c: util/parse-events.y |
Jiri Olsa | 1999307 | 2014-12-30 18:44:38 +0100 | [diff] [blame] | 110 | $(call rule_mkdir) |
Jiri Olsa | 70923bd | 2015-05-14 12:31:48 -0300 | [diff] [blame] | 111 | $(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] | 112 | |
| 113 | $(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] | 114 | $(call rule_mkdir) |
Jiri Olsa | 70923bd | 2015-05-14 12:31:48 -0300 | [diff] [blame] | 115 | $(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] | 116 | |
| 117 | $(OUTPUT)util/pmu-bison.c: util/pmu.y |
Jiri Olsa | 1999307 | 2014-12-30 18:44:38 +0100 | [diff] [blame] | 118 | $(call rule_mkdir) |
Jiri Olsa | 70923bd | 2015-05-14 12:31:48 -0300 | [diff] [blame] | 119 | $(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] | 120 | |
| 121 | CFLAGS_parse-events-flex.o += -w |
| 122 | CFLAGS_pmu-flex.o += -w |
Namhyung Kim | 539f3aa | 2015-04-29 12:55:00 -0300 | [diff] [blame] | 123 | CFLAGS_parse-events-bison.o += -DYYENABLE_NLS=0 -w |
Jiri Olsa | 9352aab | 2014-12-29 17:42:46 +0100 | [diff] [blame] | 124 | CFLAGS_pmu-bison.o += -DYYENABLE_NLS=0 -DYYLTYPE_IS_TRIVIAL=0 -w |
| 125 | |
| 126 | $(OUTPUT)util/parse-events.o: $(OUTPUT)util/parse-events-flex.c $(OUTPUT)util/parse-events-bison.c |
| 127 | $(OUTPUT)util/pmu.o: $(OUTPUT)util/pmu-flex.c $(OUTPUT)util/pmu-bison.c |
| 128 | |
| 129 | CFLAGS_find_next_bit.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))" |
| 130 | CFLAGS_rbtree.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))" |
| 131 | CFLAGS_hweight.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))" |
| 132 | CFLAGS_parse-events.o += -Wno-redundant-decls |
| 133 | |
| 134 | $(OUTPUT)util/kallsyms.o: ../lib/symbol/kallsyms.c FORCE |
Jiri Olsa | 1999307 | 2014-12-30 18:44:38 +0100 | [diff] [blame] | 135 | $(call rule_mkdir) |
Jiri Olsa | 9352aab | 2014-12-29 17:42:46 +0100 | [diff] [blame] | 136 | $(call if_changed_dep,cc_o_c) |
| 137 | |
| 138 | $(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] | 139 | $(call rule_mkdir) |
Jiri Olsa | 9352aab | 2014-12-29 17:42:46 +0100 | [diff] [blame] | 140 | $(call if_changed_dep,cc_o_c) |
| 141 | |
Arnaldo Carvalho de Melo | 3f73537 | 2015-07-05 22:48:21 -0300 | [diff] [blame] | 142 | $(OUTPUT)util/rbtree.o: ../lib/rbtree.c FORCE |
Jiri Olsa | 1999307 | 2014-12-30 18:44:38 +0100 | [diff] [blame] | 143 | $(call rule_mkdir) |
Jiri Olsa | 9352aab | 2014-12-29 17:42:46 +0100 | [diff] [blame] | 144 | $(call if_changed_dep,cc_o_c) |
| 145 | |
| 146 | $(OUTPUT)util/hweight.o: ../../lib/hweight.c FORCE |
Jiri Olsa | 1999307 | 2014-12-30 18:44:38 +0100 | [diff] [blame] | 147 | $(call rule_mkdir) |
Jiri Olsa | 9352aab | 2014-12-29 17:42:46 +0100 | [diff] [blame] | 148 | $(call if_changed_dep,cc_o_c) |