1libperf-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 8libperf-y += environment.o 9libperf-y += event.o 10libperf-y += evlist.o 11libperf-y += evsel.o 12libperf-y += exec_cmd.o 13libperf-y += find_next_bit.o 14libperf-y += help.o 15libperf-y += kallsyms.o 16libperf-y += levenshtein.o 17libperf-y += parse-options.o 18libperf-y += parse-events.o 19libperf-y += path.o 20libperf-y += rbtree.o 21libperf-y += bitmap.o 22libperf-y += hweight.o 23libperf-y += run-command.o 24libperf-y += quote.o 25libperf-y += strbuf.o 26libperf-y += string.o 27libperf-y += strlist.o 28libperf-y += strfilter.o 29libperf-y += top.o 30libperf-y += usage.o 31libperf-y += wrapper.o 32libperf-y += sigchain.o 33libperf-y += dso.o 34libperf-y += symbol.o 35libperf-y += color.o 36libperf-y += pager.o 37libperf-y += header.o 38libperf-y += callchain.o 39libperf-y += values.o 40libperf-y += debug.o 41libperf-y += machine.o 42libperf-y += map.o 43libperf-y += pstack.o 44libperf-y += session.o 45libperf-y += ordered-events.o 46libperf-y += comm.o 47libperf-y += thread.o 48libperf-y += thread_map.o 49libperf-y += trace-event-parse.o 50libperf-y += parse-events-flex.o 51libperf-y += parse-events-bison.o 52libperf-y += pmu.o 53libperf-y += pmu-flex.o 54libperf-y += pmu-bison.o 55libperf-y += trace-event-read.o 56libperf-y += trace-event-info.o 57libperf-y += trace-event-scripting.o 58libperf-y += trace-event.o 59libperf-y += svghelper.o 60libperf-y += sort.o 61libperf-y += hist.o 62libperf-y += util.o 63libperf-y += xyarray.o 64libperf-y += cpumap.o 65libperf-y += cgroup.o 66libperf-y += target.o 67libperf-y += rblist.o 68libperf-y += intlist.o 69libperf-y += vdso.o 70libperf-y += stat.o 71libperf-y += record.o 72libperf-y += srcline.o 73libperf-y += data.o 74libperf-$(CONFIG_X86) += tsc.o 75libperf-y += cloexec.o 76libperf-y += thread-stack.o 77 78libperf-$(CONFIG_LIBELF) += symbol-elf.o 79libperf-$(CONFIG_LIBELF) += probe-event.o 80 81ifndef CONFIG_LIBELF 82libperf-y += symbol-minimal.o 83endif 84 85libperf-$(CONFIG_DWARF) += probe-finder.o 86libperf-$(CONFIG_DWARF) += dwarf-aux.o 87 88libperf-$(CONFIG_LIBDW_DWARF_UNWIND) += unwind-libdw.o 89libperf-$(CONFIG_LIBUNWIND) += unwind-libunwind.o 90 91libperf-$(CONFIG_LIBBABELTRACE) += data-convert-bt.o 92 93libperf-y += scripting-engines/ 94 95libperf-$(CONFIG_PERF_REGS) += perf_regs.o 96libperf-$(CONFIG_ZLIB) += zlib.o 97libperf-$(CONFIG_LZMA) += lzma.o 98 99CFLAGS_config.o += -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))" 100CFLAGS_exec_cmd.o += -DPERF_EXEC_PATH="BUILD_STR($(perfexecdir_SQ))" -DPREFIX="BUILD_STR($(prefix_SQ))" 101 102$(OUTPUT)util/parse-events-flex.c: util/parse-events.l $(OUTPUT)util/parse-events-bison.c 103 $(call rule_mkdir) 104 @$(call echo-cmd,flex)$(FLEX) -o $@ --header-file=$(OUTPUT)util/parse-events-flex.h $(PARSER_DEBUG_FLEX) util/parse-events.l 105 106$(OUTPUT)util/parse-events-bison.c: util/parse-events.y 107 $(call rule_mkdir) 108 @$(call echo-cmd,bison)$(BISON) -v util/parse-events.y -d $(PARSER_DEBUG_BISON) -o $@ -p parse_events_ 109 110$(OUTPUT)util/pmu-flex.c: util/pmu.l $(OUTPUT)util/pmu-bison.c 111 $(call rule_mkdir) 112 @$(call echo-cmd,flex)$(FLEX) -o $@ --header-file=$(OUTPUT)util/pmu-flex.h util/pmu.l 113 114$(OUTPUT)util/pmu-bison.c: util/pmu.y 115 $(call rule_mkdir) 116 @$(call echo-cmd,bison)$(BISON) -v util/pmu.y -d -o $@ -p perf_pmu_ 117 118CFLAGS_parse-events-flex.o += -w 119CFLAGS_pmu-flex.o += -w 120CFLAGS_parse-events-bison.o += -DYYENABLE_NLS=0 -DYYLTYPE_IS_TRIVIAL=0 -w 121CFLAGS_pmu-bison.o += -DYYENABLE_NLS=0 -DYYLTYPE_IS_TRIVIAL=0 -w 122 123$(OUTPUT)util/parse-events.o: $(OUTPUT)util/parse-events-flex.c $(OUTPUT)util/parse-events-bison.c 124$(OUTPUT)util/pmu.o: $(OUTPUT)util/pmu-flex.c $(OUTPUT)util/pmu-bison.c 125 126CFLAGS_find_next_bit.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))" 127CFLAGS_rbtree.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))" 128CFLAGS_hweight.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))" 129CFLAGS_parse-events.o += -Wno-redundant-decls 130 131$(OUTPUT)util/kallsyms.o: ../lib/symbol/kallsyms.c FORCE 132 $(call rule_mkdir) 133 $(call if_changed_dep,cc_o_c) 134 135$(OUTPUT)util/find_next_bit.o: ../lib/util/find_next_bit.c FORCE 136 $(call rule_mkdir) 137 $(call if_changed_dep,cc_o_c) 138 139$(OUTPUT)util/rbtree.o: ../../lib/rbtree.c FORCE 140 $(call rule_mkdir) 141 $(call if_changed_dep,cc_o_c) 142 143$(OUTPUT)util/hweight.o: ../../lib/hweight.c FORCE 144 $(call rule_mkdir) 145 $(call if_changed_dep,cc_o_c) 146