Build 5.4 KB
Newer Older
1 2 3 4 5 6
libperf-y += alias.o
libperf-y += annotate.o
libperf-y += build-id.o
libperf-y += config.o
libperf-y += ctype.o
libperf-y += db-export.o
7
libperf-y += env.o
8 9 10
libperf-y += event.o
libperf-y += evlist.o
libperf-y += evsel.o
11
libperf-y += find_bit.o
12 13
libperf-y += kallsyms.o
libperf-y += levenshtein.o
14
libperf-y += llvm-utils.o
15
libperf-y += parse-events.o
16
libperf-y += perf_regs.o
17 18
libperf-y += path.o
libperf-y += rbtree.o
19
libperf-y += libstring.o
20 21 22 23 24 25 26 27 28 29 30 31
libperf-y += bitmap.o
libperf-y += hweight.o
libperf-y += quote.o
libperf-y += strbuf.o
libperf-y += string.o
libperf-y += strlist.o
libperf-y += strfilter.o
libperf-y += top.o
libperf-y += usage.o
libperf-y += wrapper.o
libperf-y += dso.o
libperf-y += symbol.o
32
libperf-y += symbol_fprintf.o
33 34 35 36 37 38 39 40 41
libperf-y += color.o
libperf-y += header.o
libperf-y += callchain.o
libperf-y += values.o
libperf-y += debug.o
libperf-y += machine.o
libperf-y += map.o
libperf-y += pstack.o
libperf-y += session.o
42
libperf-$(CONFIG_AUDIT) += syscalltbl.o
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67
libperf-y += ordered-events.o
libperf-y += comm.o
libperf-y += thread.o
libperf-y += thread_map.o
libperf-y += trace-event-parse.o
libperf-y += parse-events-flex.o
libperf-y += parse-events-bison.o
libperf-y += pmu.o
libperf-y += pmu-flex.o
libperf-y += pmu-bison.o
libperf-y += trace-event-read.o
libperf-y += trace-event-info.o
libperf-y += trace-event-scripting.o
libperf-y += trace-event.o
libperf-y += svghelper.o
libperf-y += sort.o
libperf-y += hist.o
libperf-y += util.o
libperf-y += xyarray.o
libperf-y += cpumap.o
libperf-y += cgroup.o
libperf-y += target.o
libperf-y += rblist.o
libperf-y += intlist.o
libperf-y += vdso.o
68
libperf-y += counts.o
69
libperf-y += stat.o
70
libperf-y += stat-shadow.o
71 72 73
libperf-y += record.o
libperf-y += srcline.o
libperf-y += data.o
74
libperf-y += tsc.o
75 76
libperf-y += cloexec.o
libperf-y += thread-stack.o
77
libperf-$(CONFIG_AUXTRACE) += auxtrace.o
78
libperf-$(CONFIG_AUXTRACE) += intel-pt-decoder/
A
Adrian Hunter 已提交
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
83
libperf-y += term.o
84
libperf-y += help-unknown-cmd.o
85
libperf-y += mem-events.o
86

87
libperf-$(CONFIG_LIBBPF) += bpf-loader.o
88
libperf-$(CONFIG_BPF_PROLOGUE) += bpf-prologue.o
89
libperf-$(CONFIG_LIBELF) += symbol-elf.o
90
libperf-$(CONFIG_LIBELF) += probe-file.o
91 92 93 94 95 96
libperf-$(CONFIG_LIBELF) += probe-event.o

ifndef CONFIG_LIBELF
libperf-y += symbol-minimal.o
endif

97 98 99
libperf-$(CONFIG_DWARF) += probe-finder.o
libperf-$(CONFIG_DWARF) += dwarf-aux.o

100 101 102
libperf-$(CONFIG_LIBDW_DWARF_UNWIND) += unwind-libdw.o
libperf-$(CONFIG_LIBUNWIND)          += unwind-libunwind.o

103 104
libperf-$(CONFIG_LIBBABELTRACE) += data-convert-bt.o

105 106
libperf-y += scripting-engines/

107
libperf-$(CONFIG_ZLIB) += zlib.o
108
libperf-$(CONFIG_LZMA) += lzma.o
109
libperf-y += demangle-java.o
110

111
ifdef CONFIG_JITDUMP
112 113
libperf-$(CONFIG_LIBELF) += jitdump.o
libperf-$(CONFIG_LIBELF) += genelf.o
114
libperf-$(CONFIG_LIBELF) += genelf_debug.o
115
endif
116

117
CFLAGS_config.o   += -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))"
118 119
# avoid compiler warnings in 32-bit mode
CFLAGS_genelf_debug.o  += -Wno-packed
120 121

$(OUTPUT)util/parse-events-flex.c: util/parse-events.l $(OUTPUT)util/parse-events-bison.c
122
	$(call rule_mkdir)
123
	$(Q)$(call echo-cmd,flex)$(FLEX) -o $@ --header-file=$(OUTPUT)util/parse-events-flex.h $(PARSER_DEBUG_FLEX) util/parse-events.l
124 125

$(OUTPUT)util/parse-events-bison.c: util/parse-events.y
126
	$(call rule_mkdir)
127
	$(Q)$(call echo-cmd,bison)$(BISON) -v util/parse-events.y -d $(PARSER_DEBUG_BISON) -o $@ -p parse_events_
128 129

$(OUTPUT)util/pmu-flex.c: util/pmu.l $(OUTPUT)util/pmu-bison.c
130
	$(call rule_mkdir)
131
	$(Q)$(call echo-cmd,flex)$(FLEX) -o $@ --header-file=$(OUTPUT)util/pmu-flex.h util/pmu.l
132 133

$(OUTPUT)util/pmu-bison.c: util/pmu.y
134
	$(call rule_mkdir)
135
	$(Q)$(call echo-cmd,bison)$(BISON) -v util/pmu.y -d -o $@ -p perf_pmu_
136 137 138

CFLAGS_parse-events-flex.o  += -w
CFLAGS_pmu-flex.o           += -w
139
CFLAGS_parse-events-bison.o += -DYYENABLE_NLS=0 -w
140 141 142 143 144
CFLAGS_pmu-bison.o          += -DYYENABLE_NLS=0 -DYYLTYPE_IS_TRIVIAL=0 -w

$(OUTPUT)util/parse-events.o: $(OUTPUT)util/parse-events-flex.c $(OUTPUT)util/parse-events-bison.c
$(OUTPUT)util/pmu.o: $(OUTPUT)util/pmu-flex.c $(OUTPUT)util/pmu-bison.c

145
CFLAGS_bitmap.o        += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))"
146
CFLAGS_find_bit.o      += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))"
147
CFLAGS_rbtree.o        += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))"
148
CFLAGS_libstring.o     += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))"
149 150 151
CFLAGS_hweight.o       += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))"
CFLAGS_parse-events.o  += -Wno-redundant-decls

152 153 154 155
$(OUTPUT)util/syscalltbl.o: util/syscalltbl.c arch/x86/entry/syscalls/syscall_64.tbl $(OUTPUT)arch/x86/include/generated/asm/syscalls_64.c FORCE
	$(call rule_mkdir)
	$(call if_changed_dep,cc_o_c)

156
$(OUTPUT)util/kallsyms.o: ../lib/symbol/kallsyms.c FORCE
157
	$(call rule_mkdir)
158 159
	$(call if_changed_dep,cc_o_c)

160 161 162 163
$(OUTPUT)util/bitmap.o: ../lib/bitmap.c FORCE
	$(call rule_mkdir)
	$(call if_changed_dep,cc_o_c)

164
$(OUTPUT)util/find_bit.o: ../lib/find_bit.c FORCE
165
	$(call rule_mkdir)
166 167
	$(call if_changed_dep,cc_o_c)

168
$(OUTPUT)util/rbtree.o: ../lib/rbtree.c FORCE
169
	$(call rule_mkdir)
170 171
	$(call if_changed_dep,cc_o_c)

172 173 174 175
$(OUTPUT)util/libstring.o: ../lib/string.c FORCE
	$(call rule_mkdir)
	$(call if_changed_dep,cc_o_c)

176
$(OUTPUT)util/hweight.o: ../lib/hweight.c FORCE
177
	$(call rule_mkdir)
178
	$(call if_changed_dep,cc_o_c)