Build 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. libperf-y += abspath.o
  2. libperf-y += alias.o
  3. libperf-y += annotate.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 += environment.o
  10. libperf-y += event.o
  11. libperf-y += evlist.o
  12. libperf-y += evsel.o
  13. libperf-y += exec_cmd.o
  14. libperf-y += find_next_bit.o
  15. libperf-y += help.o
  16. libperf-y += kallsyms.o
  17. libperf-y += levenshtein.o
  18. libperf-y += llvm-utils.o
  19. libperf-y += parse-options.o
  20. libperf-y += parse-events.o
  21. libperf-y += perf_regs.o
  22. libperf-y += path.o
  23. libperf-y += rbtree.o
  24. libperf-y += bitmap.o
  25. libperf-y += hweight.o
  26. libperf-y += run-command.o
  27. libperf-y += quote.o
  28. libperf-y += strbuf.o
  29. libperf-y += string.o
  30. libperf-y += strlist.o
  31. libperf-y += strfilter.o
  32. libperf-y += top.o
  33. libperf-y += usage.o
  34. libperf-y += wrapper.o
  35. libperf-y += sigchain.o
  36. libperf-y += dso.o
  37. libperf-y += symbol.o
  38. libperf-y += color.o
  39. libperf-y += pager.o
  40. libperf-y += header.o
  41. libperf-y += callchain.o
  42. libperf-y += values.o
  43. libperf-y += debug.o
  44. libperf-y += machine.o
  45. libperf-y += map.o
  46. libperf-y += pstack.o
  47. libperf-y += session.o
  48. libperf-y += ordered-events.o
  49. libperf-y += comm.o
  50. libperf-y += thread.o
  51. libperf-y += thread_map.o
  52. libperf-y += trace-event-parse.o
  53. libperf-y += parse-events-flex.o
  54. libperf-y += parse-events-bison.o
  55. libperf-y += pmu.o
  56. libperf-y += pmu-flex.o
  57. libperf-y += pmu-bison.o
  58. libperf-y += trace-event-read.o
  59. libperf-y += trace-event-info.o
  60. libperf-y += trace-event-scripting.o
  61. libperf-y += trace-event.o
  62. libperf-y += svghelper.o
  63. libperf-y += sort.o
  64. libperf-y += hist.o
  65. libperf-y += util.o
  66. libperf-y += xyarray.o
  67. libperf-y += cpumap.o
  68. libperf-y += cgroup.o
  69. libperf-y += target.o
  70. libperf-y += rblist.o
  71. libperf-y += intlist.o
  72. libperf-y += vdso.o
  73. libperf-y += counts.o
  74. libperf-y += stat.o
  75. libperf-y += stat-shadow.o
  76. libperf-y += record.o
  77. libperf-y += srcline.o
  78. libperf-y += data.o
  79. libperf-$(CONFIG_X86) += tsc.o
  80. libperf-$(CONFIG_AUXTRACE) += tsc.o
  81. libperf-y += cloexec.o
  82. libperf-y += thread-stack.o
  83. libperf-$(CONFIG_AUXTRACE) += auxtrace.o
  84. libperf-$(CONFIG_AUXTRACE) += intel-pt-decoder/
  85. libperf-$(CONFIG_AUXTRACE) += intel-pt.o
  86. libperf-$(CONFIG_AUXTRACE) += intel-bts.o
  87. libperf-y += parse-branch-options.o
  88. libperf-y += parse-regs-options.o
  89. libperf-$(CONFIG_LIBBPF) += bpf-loader.o
  90. libperf-$(CONFIG_LIBELF) += symbol-elf.o
  91. libperf-$(CONFIG_LIBELF) += probe-file.o
  92. libperf-$(CONFIG_LIBELF) += probe-event.o
  93. ifndef CONFIG_LIBELF
  94. libperf-y += symbol-minimal.o
  95. endif
  96. libperf-$(CONFIG_DWARF) += probe-finder.o
  97. libperf-$(CONFIG_DWARF) += dwarf-aux.o
  98. libperf-$(CONFIG_LIBDW_DWARF_UNWIND) += unwind-libdw.o
  99. libperf-$(CONFIG_LIBUNWIND) += unwind-libunwind.o
  100. libperf-$(CONFIG_LIBBABELTRACE) += data-convert-bt.o
  101. libperf-y += scripting-engines/
  102. libperf-$(CONFIG_ZLIB) += zlib.o
  103. libperf-$(CONFIG_LZMA) += lzma.o
  104. CFLAGS_config.o += -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))"
  105. CFLAGS_exec_cmd.o += -DPERF_EXEC_PATH="BUILD_STR($(perfexecdir_SQ))" -DPREFIX="BUILD_STR($(prefix_SQ))"
  106. $(OUTPUT)util/parse-events-flex.c: util/parse-events.l $(OUTPUT)util/parse-events-bison.c
  107. $(call rule_mkdir)
  108. $(Q)$(call echo-cmd,flex)$(FLEX) -o $@ --header-file=$(OUTPUT)util/parse-events-flex.h $(PARSER_DEBUG_FLEX) util/parse-events.l
  109. $(OUTPUT)util/parse-events-bison.c: util/parse-events.y
  110. $(call rule_mkdir)
  111. $(Q)$(call echo-cmd,bison)$(BISON) -v util/parse-events.y -d $(PARSER_DEBUG_BISON) -o $@ -p parse_events_
  112. $(OUTPUT)util/pmu-flex.c: util/pmu.l $(OUTPUT)util/pmu-bison.c
  113. $(call rule_mkdir)
  114. $(Q)$(call echo-cmd,flex)$(FLEX) -o $@ --header-file=$(OUTPUT)util/pmu-flex.h util/pmu.l
  115. $(OUTPUT)util/pmu-bison.c: util/pmu.y
  116. $(call rule_mkdir)
  117. $(Q)$(call echo-cmd,bison)$(BISON) -v util/pmu.y -d -o $@ -p perf_pmu_
  118. CFLAGS_parse-events-flex.o += -w
  119. CFLAGS_pmu-flex.o += -w
  120. CFLAGS_parse-events-bison.o += -DYYENABLE_NLS=0 -w
  121. CFLAGS_pmu-bison.o += -DYYENABLE_NLS=0 -DYYLTYPE_IS_TRIVIAL=0 -w
  122. $(OUTPUT)util/parse-events.o: $(OUTPUT)util/parse-events-flex.c $(OUTPUT)util/parse-events-bison.c
  123. $(OUTPUT)util/pmu.o: $(OUTPUT)util/pmu-flex.c $(OUTPUT)util/pmu-bison.c
  124. CFLAGS_find_next_bit.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))"
  125. CFLAGS_rbtree.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))"
  126. CFLAGS_hweight.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))"
  127. CFLAGS_parse-events.o += -Wno-redundant-decls
  128. $(OUTPUT)util/kallsyms.o: ../lib/symbol/kallsyms.c FORCE
  129. $(call rule_mkdir)
  130. $(call if_changed_dep,cc_o_c)
  131. $(OUTPUT)util/find_next_bit.o: ../lib/util/find_next_bit.c FORCE
  132. $(call rule_mkdir)
  133. $(call if_changed_dep,cc_o_c)
  134. $(OUTPUT)util/rbtree.o: ../lib/rbtree.c FORCE
  135. $(call rule_mkdir)
  136. $(call if_changed_dep,cc_o_c)
  137. $(OUTPUT)util/hweight.o: ../lib/hweight.c FORCE
  138. $(call rule_mkdir)
  139. $(call if_changed_dep,cc_o_c)