Jiri Olsa | 9352aab | 2014-12-29 17:42:46 +0100 | [diff] [blame] | 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 += environment.o |
| 9 | libperf-y += event.o |
| 10 | libperf-y += evlist.o |
| 11 | libperf-y += evsel.o |
| 12 | libperf-y += exec_cmd.o |
| 13 | libperf-y += find_next_bit.o |
| 14 | libperf-y += help.o |
| 15 | libperf-y += kallsyms.o |
| 16 | libperf-y += levenshtein.o |
| 17 | libperf-y += parse-options.o |
| 18 | libperf-y += parse-events.o |
| 19 | libperf-y += path.o |
| 20 | libperf-y += rbtree.o |
| 21 | libperf-y += bitmap.o |
| 22 | libperf-y += hweight.o |
| 23 | libperf-y += run-command.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 += wrapper.o |
| 32 | libperf-y += sigchain.o |
| 33 | libperf-y += dso.o |
| 34 | libperf-y += symbol.o |
| 35 | libperf-y += color.o |
| 36 | libperf-y += pager.o |
| 37 | libperf-y += header.o |
| 38 | libperf-y += callchain.o |
| 39 | libperf-y += values.o |
| 40 | libperf-y += debug.o |
| 41 | libperf-y += machine.o |
| 42 | libperf-y += map.o |
| 43 | libperf-y += pstack.o |
| 44 | libperf-y += session.o |
| 45 | libperf-y += ordered-events.o |
| 46 | libperf-y += comm.o |
| 47 | libperf-y += thread.o |
| 48 | libperf-y += thread_map.o |
| 49 | libperf-y += trace-event-parse.o |
| 50 | libperf-y += parse-events-flex.o |
| 51 | libperf-y += parse-events-bison.o |
| 52 | libperf-y += pmu.o |
| 53 | libperf-y += pmu-flex.o |
| 54 | libperf-y += pmu-bison.o |
| 55 | libperf-y += trace-event-read.o |
| 56 | libperf-y += trace-event-info.o |
| 57 | libperf-y += trace-event-scripting.o |
| 58 | libperf-y += trace-event.o |
| 59 | libperf-y += svghelper.o |
| 60 | libperf-y += sort.o |
| 61 | libperf-y += hist.o |
| 62 | libperf-y += util.o |
| 63 | libperf-y += xyarray.o |
| 64 | libperf-y += cpumap.o |
| 65 | libperf-y += cgroup.o |
| 66 | libperf-y += target.o |
| 67 | libperf-y += rblist.o |
| 68 | libperf-y += intlist.o |
| 69 | libperf-y += vdso.o |
| 70 | libperf-y += stat.o |
| 71 | libperf-y += record.o |
| 72 | libperf-y += srcline.o |
| 73 | libperf-y += data.o |
| 74 | libperf-y += tsc.o |
| 75 | libperf-y += cloexec.o |
| 76 | libperf-y += thread-stack.o |
| 77 | |
Jiri Olsa | 709e679 | 2014-12-29 23:52:25 +0100 | [diff] [blame] | 78 | libperf-$(CONFIG_LIBELF) += symbol-elf.o |
| 79 | libperf-$(CONFIG_LIBELF) += probe-event.o |
| 80 | |
| 81 | ifndef CONFIG_LIBELF |
| 82 | libperf-y += symbol-minimal.o |
| 83 | endif |
| 84 | |
Jiri Olsa | 8379fce | 2014-12-30 00:06:25 +0100 | [diff] [blame] | 85 | libperf-$(CONFIG_DWARF) += probe-finder.o |
| 86 | libperf-$(CONFIG_DWARF) += dwarf-aux.o |
| 87 | |
Jiri Olsa | b2e45c3 | 2014-12-30 00:11:11 +0100 | [diff] [blame] | 88 | libperf-$(CONFIG_LIBDW_DWARF_UNWIND) += unwind-libdw.o |
| 89 | libperf-$(CONFIG_LIBUNWIND) += unwind-libunwind.o |
| 90 | |
Jiri Olsa | 9352aab | 2014-12-29 17:42:46 +0100 | [diff] [blame] | 91 | CFLAGS_config.o += -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))" |
| 92 | CFLAGS_exec_cmd.o += -DPERF_EXEC_PATH="BUILD_STR($(perfexecdir_SQ))" -DPREFIX="BUILD_STR($(prefix_SQ))" |
| 93 | |
| 94 | $(OUTPUT)util/parse-events-flex.c: util/parse-events.l $(OUTPUT)util/parse-events-bison.c |
| 95 | @$(call echo-cmd,flex)$(FLEX) -o $@ --header-file=$(OUTPUT)util/parse-events-flex.h $(PARSER_DEBUG_FLEX) util/parse-events.l |
| 96 | |
| 97 | $(OUTPUT)util/parse-events-bison.c: util/parse-events.y |
| 98 | @$(call echo-cmd,bison)$(BISON) -v util/parse-events.y -d $(PARSER_DEBUG_BISON) -o $@ -p parse_events_ |
| 99 | |
| 100 | $(OUTPUT)util/pmu-flex.c: util/pmu.l $(OUTPUT)util/pmu-bison.c |
| 101 | @$(call echo-cmd,flex)$(FLEX) -o $@ --header-file=$(OUTPUT)util/pmu-flex.h util/pmu.l |
| 102 | |
| 103 | $(OUTPUT)util/pmu-bison.c: util/pmu.y |
| 104 | @$(call echo-cmd,bison)$(BISON) -v util/pmu.y -d -o $@ -p perf_pmu_ |
| 105 | |
| 106 | CFLAGS_parse-events-flex.o += -w |
| 107 | CFLAGS_pmu-flex.o += -w |
| 108 | CFLAGS_parse-events-bison.o += -DYYENABLE_NLS=0 -DYYLTYPE_IS_TRIVIAL=0 -w |
| 109 | CFLAGS_pmu-bison.o += -DYYENABLE_NLS=0 -DYYLTYPE_IS_TRIVIAL=0 -w |
| 110 | |
| 111 | $(OUTPUT)util/parse-events.o: $(OUTPUT)util/parse-events-flex.c $(OUTPUT)util/parse-events-bison.c |
| 112 | $(OUTPUT)util/pmu.o: $(OUTPUT)util/pmu-flex.c $(OUTPUT)util/pmu-bison.c |
| 113 | |
| 114 | CFLAGS_find_next_bit.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))" |
| 115 | CFLAGS_rbtree.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))" |
| 116 | CFLAGS_hweight.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))" |
| 117 | CFLAGS_parse-events.o += -Wno-redundant-decls |
| 118 | |
| 119 | $(OUTPUT)util/kallsyms.o: ../lib/symbol/kallsyms.c FORCE |
| 120 | $(call if_changed_dep,cc_o_c) |
| 121 | |
| 122 | $(OUTPUT)util/find_next_bit.o: ../lib/util/find_next_bit.c FORCE |
| 123 | $(call if_changed_dep,cc_o_c) |
| 124 | |
| 125 | $(OUTPUT)util/rbtree.o: ../../lib/rbtree.c FORCE |
| 126 | $(call if_changed_dep,cc_o_c) |
| 127 | |
| 128 | $(OUTPUT)util/hweight.o: ../../lib/hweight.c FORCE |
| 129 | $(call if_changed_dep,cc_o_c) |