Build 5.7 KB

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