aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/Makefile')
-rw-r--r--tools/perf/Makefile12
1 files changed, 9 insertions, 3 deletions
diff --git a/tools/perf/Makefile b/tools/perf/Makefile
index 7c12650165a..e011b5060f9 100644
--- a/tools/perf/Makefile
+++ b/tools/perf/Makefile
@@ -61,7 +61,7 @@ ifeq ($(ARCH),x86_64)
61 ifeq (${IS_X86_64}, 1) 61 ifeq (${IS_X86_64}, 1)
62 RAW_ARCH := x86_64 62 RAW_ARCH := x86_64
63 ARCH_CFLAGS := -DARCH_X86_64 63 ARCH_CFLAGS := -DARCH_X86_64
64 ARCH_INCLUDE = ../../arch/x86/lib/memcpy_64.S 64 ARCH_INCLUDE = ../../arch/x86/lib/memcpy_64.S ../../arch/x86/lib/memset_64.S
65 endif 65 endif
66endif 66endif
67 67
@@ -183,7 +183,10 @@ SCRIPT_SH += perf-archive.sh
183grep-libs = $(filter -l%,$(1)) 183grep-libs = $(filter -l%,$(1))
184strip-libs = $(filter-out -l%,$(1)) 184strip-libs = $(filter-out -l%,$(1))
185 185
186$(OUTPUT)python/perf.so: $(PYRF_OBJS) 186PYTHON_EXT_SRCS := $(shell grep -v ^\# util/python-ext-sources)
187PYTHON_EXT_DEPS := util/python-ext-sources util/setup.py
188
189$(OUTPUT)python/perf.so: $(PYRF_OBJS) $(PYTHON_EXT_SRCS) $(PYTHON_EXT_DEPS)
187 $(QUIET_GEN)CFLAGS='$(BASIC_CFLAGS)' $(PYTHON_WORD) util/setup.py \ 190 $(QUIET_GEN)CFLAGS='$(BASIC_CFLAGS)' $(PYTHON_WORD) util/setup.py \
188 --quiet build_ext; \ 191 --quiet build_ext; \
189 mkdir -p $(OUTPUT)python && \ 192 mkdir -p $(OUTPUT)python && \
@@ -256,6 +259,7 @@ LIB_H += util/callchain.h
256LIB_H += util/build-id.h 259LIB_H += util/build-id.h
257LIB_H += util/debug.h 260LIB_H += util/debug.h
258LIB_H += util/debugfs.h 261LIB_H += util/debugfs.h
262LIB_H += util/sysfs.h
259LIB_H += util/event.h 263LIB_H += util/event.h
260LIB_H += util/evsel.h 264LIB_H += util/evsel.h
261LIB_H += util/evlist.h 265LIB_H += util/evlist.h
@@ -302,6 +306,7 @@ LIB_OBJS += $(OUTPUT)util/build-id.o
302LIB_OBJS += $(OUTPUT)util/config.o 306LIB_OBJS += $(OUTPUT)util/config.o
303LIB_OBJS += $(OUTPUT)util/ctype.o 307LIB_OBJS += $(OUTPUT)util/ctype.o
304LIB_OBJS += $(OUTPUT)util/debugfs.o 308LIB_OBJS += $(OUTPUT)util/debugfs.o
309LIB_OBJS += $(OUTPUT)util/sysfs.o
305LIB_OBJS += $(OUTPUT)util/environment.o 310LIB_OBJS += $(OUTPUT)util/environment.o
306LIB_OBJS += $(OUTPUT)util/event.o 311LIB_OBJS += $(OUTPUT)util/event.o
307LIB_OBJS += $(OUTPUT)util/evlist.o 312LIB_OBJS += $(OUTPUT)util/evlist.o
@@ -359,8 +364,10 @@ BUILTIN_OBJS += $(OUTPUT)bench/sched-messaging.o
359BUILTIN_OBJS += $(OUTPUT)bench/sched-pipe.o 364BUILTIN_OBJS += $(OUTPUT)bench/sched-pipe.o
360ifeq ($(RAW_ARCH),x86_64) 365ifeq ($(RAW_ARCH),x86_64)
361BUILTIN_OBJS += $(OUTPUT)bench/mem-memcpy-x86-64-asm.o 366BUILTIN_OBJS += $(OUTPUT)bench/mem-memcpy-x86-64-asm.o
367BUILTIN_OBJS += $(OUTPUT)bench/mem-memset-x86-64-asm.o
362endif 368endif
363BUILTIN_OBJS += $(OUTPUT)bench/mem-memcpy.o 369BUILTIN_OBJS += $(OUTPUT)bench/mem-memcpy.o
370BUILTIN_OBJS += $(OUTPUT)bench/mem-memset.o
364 371
365BUILTIN_OBJS += $(OUTPUT)builtin-diff.o 372BUILTIN_OBJS += $(OUTPUT)builtin-diff.o
366BUILTIN_OBJS += $(OUTPUT)builtin-evlist.o 373BUILTIN_OBJS += $(OUTPUT)builtin-evlist.o
@@ -792,7 +799,6 @@ help:
792 @echo ' quick-install-html - install the html documentation quickly' 799 @echo ' quick-install-html - install the html documentation quickly'
793 @echo '' 800 @echo ''
794 @echo 'Perf maintainer targets:' 801 @echo 'Perf maintainer targets:'
795 @echo ' distclean - alias to clean'
796 @echo ' clean - clean all binary objects and build output' 802 @echo ' clean - clean all binary objects and build output'
797 803
798doc: 804doc: