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 += str_error_r.o 74libperf-y += data.o 75libperf-y += tsc.o 76libperf-y += cloexec.o 77libperf-y += call-path.o 78libperf-y += thread-stack.o 79libperf-$(CONFIG_AUXTRACE) += auxtrace.o 80libperf-$(CONFIG_AUXTRACE) += intel-pt-decoder/ 81libperf-$(CONFIG_AUXTRACE) += intel-pt.o 82libperf-$(CONFIG_AUXTRACE) += intel-bts.o 83libperf-y += parse-branch-options.o 84libperf-y += parse-regs-options.o 85libperf-y += term.o 86libperf-y += help-unknown-cmd.o 87libperf-y += mem-events.o 88libperf-y += vsprintf.o 89 90libperf-$(CONFIG_LIBBPF) += bpf-loader.o 91libperf-$(CONFIG_BPF_PROLOGUE) += bpf-prologue.o 92libperf-$(CONFIG_LIBELF) += symbol-elf.o 93libperf-$(CONFIG_LIBELF) += probe-file.o 94libperf-$(CONFIG_LIBELF) += probe-event.o 95 96ifndef CONFIG_LIBELF 97libperf-y += symbol-minimal.o 98endif 99 100libperf-$(CONFIG_DWARF) += probe-finder.o 101libperf-$(CONFIG_DWARF) += dwarf-aux.o 102 103libperf-$(CONFIG_LIBDW_DWARF_UNWIND) += unwind-libdw.o 104libperf-$(CONFIG_LOCAL_LIBUNWIND) += unwind-libunwind-local.o 105libperf-$(CONFIG_LIBUNWIND) += unwind-libunwind.o 106libperf-$(CONFIG_LIBUNWIND_X86) += libunwind/x86_32.o 107libperf-$(CONFIG_LIBUNWIND_AARCH64) += libunwind/arm64.o 108 109libperf-$(CONFIG_LIBBABELTRACE) += data-convert-bt.o 110 111libperf-y += scripting-engines/ 112 113libperf-$(CONFIG_ZLIB) += zlib.o 114libperf-$(CONFIG_LZMA) += lzma.o 115libperf-y += demangle-java.o 116 117ifdef CONFIG_JITDUMP 118libperf-$(CONFIG_LIBELF) += jitdump.o 119libperf-$(CONFIG_LIBELF) += genelf.o 120libperf-$(CONFIG_LIBELF) += genelf_debug.o 121endif 122 123CFLAGS_config.o += -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))" 124# avoid compiler warnings in 32-bit mode 125CFLAGS_genelf_debug.o += -Wno-packed 126 127$(OUTPUT)util/parse-events-flex.c: util/parse-events.l $(OUTPUT)util/parse-events-bison.c 128 $(call rule_mkdir) 129 $(Q)$(call echo-cmd,flex)$(FLEX) -o $@ --header-file=$(OUTPUT)util/parse-events-flex.h $(PARSER_DEBUG_FLEX) util/parse-events.l 130 131$(OUTPUT)util/parse-events-bison.c: util/parse-events.y 132 $(call rule_mkdir) 133 $(Q)$(call echo-cmd,bison)$(BISON) -v util/parse-events.y -d $(PARSER_DEBUG_BISON) -o $@ -p parse_events_ 134 135$(OUTPUT)util/pmu-flex.c: util/pmu.l $(OUTPUT)util/pmu-bison.c 136 $(call rule_mkdir) 137 $(Q)$(call echo-cmd,flex)$(FLEX) -o $@ --header-file=$(OUTPUT)util/pmu-flex.h util/pmu.l 138 139$(OUTPUT)util/pmu-bison.c: util/pmu.y 140 $(call rule_mkdir) 141 $(Q)$(call echo-cmd,bison)$(BISON) -v util/pmu.y -d -o $@ -p perf_pmu_ 142 143CFLAGS_parse-events-flex.o += -w 144CFLAGS_pmu-flex.o += -w 145CFLAGS_parse-events-bison.o += -DYYENABLE_NLS=0 -w 146CFLAGS_pmu-bison.o += -DYYENABLE_NLS=0 -DYYLTYPE_IS_TRIVIAL=0 -w 147 148$(OUTPUT)util/parse-events.o: $(OUTPUT)util/parse-events-flex.c $(OUTPUT)util/parse-events-bison.c 149$(OUTPUT)util/pmu.o: $(OUTPUT)util/pmu-flex.c $(OUTPUT)util/pmu-bison.c 150 151CFLAGS_bitmap.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))" 152CFLAGS_find_bit.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))" 153CFLAGS_rbtree.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))" 154CFLAGS_libstring.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))" 155CFLAGS_hweight.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))" 156CFLAGS_parse-events.o += -Wno-redundant-decls 157 158$(OUTPUT)util/kallsyms.o: ../lib/symbol/kallsyms.c FORCE 159 $(call rule_mkdir) 160 $(call if_changed_dep,cc_o_c) 161 162$(OUTPUT)util/bitmap.o: ../lib/bitmap.c FORCE 163 $(call rule_mkdir) 164 $(call if_changed_dep,cc_o_c) 165 166$(OUTPUT)util/find_bit.o: ../lib/find_bit.c FORCE 167 $(call rule_mkdir) 168 $(call if_changed_dep,cc_o_c) 169 170$(OUTPUT)util/rbtree.o: ../lib/rbtree.c FORCE 171 $(call rule_mkdir) 172 $(call if_changed_dep,cc_o_c) 173 174$(OUTPUT)util/libstring.o: ../lib/string.c FORCE 175 $(call rule_mkdir) 176 $(call if_changed_dep,cc_o_c) 177 178$(OUTPUT)util/str_error_r.o: ../lib/str_error_r.c FORCE 179 $(call rule_mkdir) 180 $(call if_changed_dep,cc_o_c) 181 182$(OUTPUT)util/hweight.o: ../lib/hweight.c FORCE 183 $(call rule_mkdir) 184 $(call if_changed_dep,cc_o_c) 185 186$(OUTPUT)util/vsprintf.o: ../lib/vsprintf.c FORCE 187 $(call rule_mkdir) 188 $(call if_changed_dep,cc_o_c) 189