1libperf-y += alias.o 2libperf-y += annotate.o 3libperf-y += build-id.o 4libperf-y += config.o 5libperf-y += ctype.o 6libperf-y += db-export.o 7libperf-y += env.o 8libperf-y += event.o 9libperf-y += evlist.o 10libperf-y += evsel.o 11libperf-y += evsel_fprintf.o 12libperf-y += find_bit.o 13libperf-y += kallsyms.o 14libperf-y += levenshtein.o 15libperf-y += llvm-utils.o 16libperf-y += parse-events.o 17libperf-y += perf_regs.o 18libperf-y += path.o 19libperf-y += rbtree.o 20libperf-y += libstring.o 21libperf-y += bitmap.o 22libperf-y += hweight.o 23libperf-y += quote.o 24libperf-y += strbuf.o 25libperf-y += string.o 26libperf-y += strlist.o 27libperf-y += strfilter.o 28libperf-y += top.o 29libperf-y += usage.o 30libperf-y += dso.o 31libperf-y += symbol.o 32libperf-y += symbol_fprintf.o 33libperf-y += color.o 34libperf-y += header.o 35libperf-y += callchain.o 36libperf-y += values.o 37libperf-y += debug.o 38libperf-y += machine.o 39libperf-y += map.o 40libperf-y += pstack.o 41libperf-y += session.o 42libperf-$(CONFIG_AUDIT) += syscalltbl.o 43libperf-y += ordered-events.o 44libperf-y += comm.o 45libperf-y += thread.o 46libperf-y += thread_map.o 47libperf-y += trace-event-parse.o 48libperf-y += parse-events-flex.o 49libperf-y += parse-events-bison.o 50libperf-y += pmu.o 51libperf-y += pmu-flex.o 52libperf-y += pmu-bison.o 53libperf-y += trace-event-read.o 54libperf-y += trace-event-info.o 55libperf-y += trace-event-scripting.o 56libperf-y += trace-event.o 57libperf-y += svghelper.o 58libperf-y += sort.o 59libperf-y += hist.o 60libperf-y += util.o 61libperf-y += xyarray.o 62libperf-y += cpumap.o 63libperf-y += cgroup.o 64libperf-y += target.o 65libperf-y += rblist.o 66libperf-y += intlist.o 67libperf-y += vdso.o 68libperf-y += counts.o 69libperf-y += stat.o 70libperf-y += stat-shadow.o 71libperf-y += record.o 72libperf-y += srcline.o 73libperf-y += data.o 74libperf-y += tsc.o 75libperf-y += cloexec.o 76libperf-y += call-path.o 77libperf-y += thread-stack.o 78libperf-$(CONFIG_AUXTRACE) += auxtrace.o 79libperf-$(CONFIG_AUXTRACE) += intel-pt-decoder/ 80libperf-$(CONFIG_AUXTRACE) += intel-pt.o 81libperf-$(CONFIG_AUXTRACE) += intel-bts.o 82libperf-y += parse-branch-options.o 83libperf-y += parse-regs-options.o 84libperf-y += term.o 85libperf-y += help-unknown-cmd.o 86libperf-y += mem-events.o 87 88libperf-$(CONFIG_LIBBPF) += bpf-loader.o 89libperf-$(CONFIG_BPF_PROLOGUE) += bpf-prologue.o 90libperf-$(CONFIG_LIBELF) += symbol-elf.o 91libperf-$(CONFIG_LIBELF) += probe-file.o 92libperf-$(CONFIG_LIBELF) += probe-event.o 93 94ifndef CONFIG_LIBELF 95libperf-y += symbol-minimal.o 96endif 97 98libperf-$(CONFIG_DWARF) += probe-finder.o 99libperf-$(CONFIG_DWARF) += dwarf-aux.o 100 101libperf-$(CONFIG_LIBDW_DWARF_UNWIND) += unwind-libdw.o 102libperf-$(CONFIG_LIBUNWIND) += unwind-libunwind.o 103 104libperf-$(CONFIG_LIBBABELTRACE) += data-convert-bt.o 105 106libperf-y += scripting-engines/ 107 108libperf-$(CONFIG_ZLIB) += zlib.o 109libperf-$(CONFIG_LZMA) += lzma.o 110libperf-y += demangle-java.o 111 112ifdef CONFIG_JITDUMP 113libperf-$(CONFIG_LIBELF) += jitdump.o 114libperf-$(CONFIG_LIBELF) += genelf.o 115libperf-$(CONFIG_LIBELF) += genelf_debug.o 116endif 117 118CFLAGS_config.o += -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))" 119# avoid compiler warnings in 32-bit mode 120CFLAGS_genelf_debug.o += -Wno-packed 121 122$(OUTPUT)util/parse-events-flex.c: util/parse-events.l $(OUTPUT)util/parse-events-bison.c 123 $(call rule_mkdir) 124 $(Q)$(call echo-cmd,flex)$(FLEX) -o $@ --header-file=$(OUTPUT)util/parse-events-flex.h $(PARSER_DEBUG_FLEX) util/parse-events.l 125 126$(OUTPUT)util/parse-events-bison.c: util/parse-events.y 127 $(call rule_mkdir) 128 $(Q)$(call echo-cmd,bison)$(BISON) -v util/parse-events.y -d $(PARSER_DEBUG_BISON) -o $@ -p parse_events_ 129 130$(OUTPUT)util/pmu-flex.c: util/pmu.l $(OUTPUT)util/pmu-bison.c 131 $(call rule_mkdir) 132 $(Q)$(call echo-cmd,flex)$(FLEX) -o $@ --header-file=$(OUTPUT)util/pmu-flex.h util/pmu.l 133 134$(OUTPUT)util/pmu-bison.c: util/pmu.y 135 $(call rule_mkdir) 136 $(Q)$(call echo-cmd,bison)$(BISON) -v util/pmu.y -d -o $@ -p perf_pmu_ 137 138CFLAGS_parse-events-flex.o += -w 139CFLAGS_pmu-flex.o += -w 140CFLAGS_parse-events-bison.o += -DYYENABLE_NLS=0 -w 141CFLAGS_pmu-bison.o += -DYYENABLE_NLS=0 -DYYLTYPE_IS_TRIVIAL=0 -w 142 143$(OUTPUT)util/parse-events.o: $(OUTPUT)util/parse-events-flex.c $(OUTPUT)util/parse-events-bison.c 144$(OUTPUT)util/pmu.o: $(OUTPUT)util/pmu-flex.c $(OUTPUT)util/pmu-bison.c 145 146CFLAGS_bitmap.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))" 147CFLAGS_find_bit.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))" 148CFLAGS_rbtree.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))" 149CFLAGS_libstring.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))" 150CFLAGS_hweight.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))" 151CFLAGS_parse-events.o += -Wno-redundant-decls 152 153$(OUTPUT)util/kallsyms.o: ../lib/symbol/kallsyms.c FORCE 154 $(call rule_mkdir) 155 $(call if_changed_dep,cc_o_c) 156 157$(OUTPUT)util/bitmap.o: ../lib/bitmap.c FORCE 158 $(call rule_mkdir) 159 $(call if_changed_dep,cc_o_c) 160 161$(OUTPUT)util/find_bit.o: ../lib/find_bit.c FORCE 162 $(call rule_mkdir) 163 $(call if_changed_dep,cc_o_c) 164 165$(OUTPUT)util/rbtree.o: ../lib/rbtree.c FORCE 166 $(call rule_mkdir) 167 $(call if_changed_dep,cc_o_c) 168 169$(OUTPUT)util/libstring.o: ../lib/string.c FORCE 170 $(call rule_mkdir) 171 $(call if_changed_dep,cc_o_c) 172 173$(OUTPUT)util/hweight.o: ../lib/hweight.c FORCE 174 $(call rule_mkdir) 175 $(call if_changed_dep,cc_o_c) 176