diff options
Diffstat (limited to 'tools/perf/Makefile')
-rw-r--r-- | tools/perf/Makefile | 12 |
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 |
66 | endif | 66 | endif |
67 | 67 | ||
@@ -183,7 +183,10 @@ SCRIPT_SH += perf-archive.sh | |||
183 | grep-libs = $(filter -l%,$(1)) | 183 | grep-libs = $(filter -l%,$(1)) |
184 | strip-libs = $(filter-out -l%,$(1)) | 184 | strip-libs = $(filter-out -l%,$(1)) |
185 | 185 | ||
186 | $(OUTPUT)python/perf.so: $(PYRF_OBJS) | 186 | PYTHON_EXT_SRCS := $(shell grep -v ^\# util/python-ext-sources) |
187 | PYTHON_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 | |||
256 | LIB_H += util/build-id.h | 259 | LIB_H += util/build-id.h |
257 | LIB_H += util/debug.h | 260 | LIB_H += util/debug.h |
258 | LIB_H += util/debugfs.h | 261 | LIB_H += util/debugfs.h |
262 | LIB_H += util/sysfs.h | ||
259 | LIB_H += util/event.h | 263 | LIB_H += util/event.h |
260 | LIB_H += util/evsel.h | 264 | LIB_H += util/evsel.h |
261 | LIB_H += util/evlist.h | 265 | LIB_H += util/evlist.h |
@@ -302,6 +306,7 @@ LIB_OBJS += $(OUTPUT)util/build-id.o | |||
302 | LIB_OBJS += $(OUTPUT)util/config.o | 306 | LIB_OBJS += $(OUTPUT)util/config.o |
303 | LIB_OBJS += $(OUTPUT)util/ctype.o | 307 | LIB_OBJS += $(OUTPUT)util/ctype.o |
304 | LIB_OBJS += $(OUTPUT)util/debugfs.o | 308 | LIB_OBJS += $(OUTPUT)util/debugfs.o |
309 | LIB_OBJS += $(OUTPUT)util/sysfs.o | ||
305 | LIB_OBJS += $(OUTPUT)util/environment.o | 310 | LIB_OBJS += $(OUTPUT)util/environment.o |
306 | LIB_OBJS += $(OUTPUT)util/event.o | 311 | LIB_OBJS += $(OUTPUT)util/event.o |
307 | LIB_OBJS += $(OUTPUT)util/evlist.o | 312 | LIB_OBJS += $(OUTPUT)util/evlist.o |
@@ -359,8 +364,10 @@ BUILTIN_OBJS += $(OUTPUT)bench/sched-messaging.o | |||
359 | BUILTIN_OBJS += $(OUTPUT)bench/sched-pipe.o | 364 | BUILTIN_OBJS += $(OUTPUT)bench/sched-pipe.o |
360 | ifeq ($(RAW_ARCH),x86_64) | 365 | ifeq ($(RAW_ARCH),x86_64) |
361 | BUILTIN_OBJS += $(OUTPUT)bench/mem-memcpy-x86-64-asm.o | 366 | BUILTIN_OBJS += $(OUTPUT)bench/mem-memcpy-x86-64-asm.o |
367 | BUILTIN_OBJS += $(OUTPUT)bench/mem-memset-x86-64-asm.o | ||
362 | endif | 368 | endif |
363 | BUILTIN_OBJS += $(OUTPUT)bench/mem-memcpy.o | 369 | BUILTIN_OBJS += $(OUTPUT)bench/mem-memcpy.o |
370 | BUILTIN_OBJS += $(OUTPUT)bench/mem-memset.o | ||
364 | 371 | ||
365 | BUILTIN_OBJS += $(OUTPUT)builtin-diff.o | 372 | BUILTIN_OBJS += $(OUTPUT)builtin-diff.o |
366 | BUILTIN_OBJS += $(OUTPUT)builtin-evlist.o | 373 | BUILTIN_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 | ||
798 | doc: | 804 | doc: |