3 libperf-y += annotate.o
4 libperf-y += build-id.o
7 libperf-y += db-export.o
12 libperf-y += find_bit.o
13 libperf-y += kallsyms.o
14 libperf-y += levenshtein.o
15 libperf-y += llvm-utils.o
16 libperf-y += parse-events.o
17 libperf-y += perf_regs.o
20 libperf-y += libstring.o
22 libperf-y += hweight.o
26 libperf-y += strlist.o
27 libperf-y += strfilter.o
30 libperf-y += wrapper.o
35 libperf-y += callchain.o
38 libperf-y += machine.o
41 libperf-y += session.o
42 libperf-y += ordered-events.o
45 libperf-y += thread_map.o
46 libperf-y += trace-event-parse.o
47 libperf-y += parse-events-flex.o
48 libperf-y += parse-events-bison.o
50 libperf-y += pmu-flex.o
51 libperf-y += pmu-bison.o
52 libperf-y += trace-event-read.o
53 libperf-y += trace-event-info.o
54 libperf-y += trace-event-scripting.o
55 libperf-y += trace-event.o
56 libperf-y += svghelper.o
60 libperf-y += xyarray.o
65 libperf-y += intlist.o
69 libperf-y += stat-shadow.o
71 libperf-y += srcline.o
73 libperf-$(CONFIG_X86) += tsc.o
74 libperf-$(CONFIG_AUXTRACE) += tsc.o
75 libperf-y += cloexec.o
76 libperf-y += thread-stack.o
77 libperf-$(CONFIG_AUXTRACE) += auxtrace.o
78 libperf-$(CONFIG_AUXTRACE) += intel-pt-decoder/
79 libperf-$(CONFIG_AUXTRACE) += intel-pt.o
80 libperf-$(CONFIG_AUXTRACE) += intel-bts.o
81 libperf-y += parse-branch-options.o
82 libperf-y += parse-regs-options.o
84 libperf-y += help-unknown-cmd.o
86 libperf-$(CONFIG_LIBBPF) += bpf-loader.o
87 libperf-$(CONFIG_BPF_PROLOGUE) += bpf-prologue.o
88 libperf-$(CONFIG_LIBELF) += symbol-elf.o
89 libperf-$(CONFIG_LIBELF) += probe-file.o
90 libperf-$(CONFIG_LIBELF) += probe-event.o
93 libperf-y += symbol-minimal.o
96 libperf-$(CONFIG_DWARF) += probe-finder.o
97 libperf-$(CONFIG_DWARF) += dwarf-aux.o
99 libperf-$(CONFIG_LIBDW_DWARF_UNWIND) += unwind-libdw.o
100 libperf-$(CONFIG_LIBUNWIND) += unwind-libunwind.o
102 libperf-$(CONFIG_LIBBABELTRACE) += data-convert-bt.o
104 libperf-y += scripting-engines/
106 libperf-$(CONFIG_ZLIB) += zlib.o
107 libperf-$(CONFIG_LZMA) += lzma.o
109 CFLAGS_config.o += -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))"
111 $(OUTPUT)util/parse-events-flex.c: util/parse-events.l $(OUTPUT)util/parse-events-bison.c
113 $(Q)$(call echo-cmd,flex)$(FLEX) -o $@ --header-file=$(OUTPUT)util/parse-events-flex.h $(PARSER_DEBUG_FLEX) util/parse-events.l
115 $(OUTPUT)util/parse-events-bison.c: util/parse-events.y
117 $(Q)$(call echo-cmd,bison)$(BISON) -v util/parse-events.y -d $(PARSER_DEBUG_BISON) -o $@ -p parse_events_
119 $(OUTPUT)util/pmu-flex.c: util/pmu.l $(OUTPUT)util/pmu-bison.c
121 $(Q)$(call echo-cmd,flex)$(FLEX) -o $@ --header-file=$(OUTPUT)util/pmu-flex.h util/pmu.l
123 $(OUTPUT)util/pmu-bison.c: util/pmu.y
125 $(Q)$(call echo-cmd,bison)$(BISON) -v util/pmu.y -d -o $@ -p perf_pmu_
127 CFLAGS_parse-events-flex.o += -w
128 CFLAGS_pmu-flex.o += -w
129 CFLAGS_parse-events-bison.o += -DYYENABLE_NLS=0 -w
130 CFLAGS_pmu-bison.o += -DYYENABLE_NLS=0 -DYYLTYPE_IS_TRIVIAL=0 -w
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
135 CFLAGS_bitmap.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))"
136 CFLAGS_find_bit.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))"
137 CFLAGS_rbtree.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))"
138 CFLAGS_libstring.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))"
139 CFLAGS_hweight.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))"
140 CFLAGS_parse-events.o += -Wno-redundant-decls
142 $(OUTPUT)util/kallsyms.o: ../lib/symbol/kallsyms.c FORCE
144 $(call if_changed_dep,cc_o_c)
146 $(OUTPUT)util/bitmap.o: ../lib/bitmap.c FORCE
148 $(call if_changed_dep,cc_o_c)
150 $(OUTPUT)util/find_bit.o: ../lib/find_bit.c FORCE
152 $(call if_changed_dep,cc_o_c)
154 $(OUTPUT)util/rbtree.o: ../lib/rbtree.c FORCE
156 $(call if_changed_dep,cc_o_c)
158 $(OUTPUT)util/libstring.o: ../lib/string.c FORCE
160 $(call if_changed_dep,cc_o_c)
162 $(OUTPUT)util/hweight.o: ../lib/hweight.c FORCE
164 $(call if_changed_dep,cc_o_c)