diff options
author | Jiri Olsa <jolsa@kernel.org> | 2014-12-30 07:11:32 -0500 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2015-02-12 09:49:53 -0500 |
commit | c7355f842bf84ba7b1c9d6378f85bb53c99284b2 (patch) | |
tree | db48a0f60d838f9ac91276be1afe590b93915c9b /tools/perf/Makefile.perf | |
parent | 88aeea06ebd2192328c83519f07e5768681e29e7 (diff) |
perf build: Add scripts objects building
Move the scripts objects building under build framework to be included
in the libperf build object.
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Tested-by: Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com>
Tested-by: Will Deacon <will.deacon@arm.com>
Cc: Alexis Berlemont <alexis.berlemont@gmail.com>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/n/tip-ry8pd41ahwpq9h46i8te33c7@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/Makefile.perf')
-rw-r--r-- | tools/perf/Makefile.perf | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/tools/perf/Makefile.perf b/tools/perf/Makefile.perf index 18ff8aab582a..4705fa9339eb 100644 --- a/tools/perf/Makefile.perf +++ b/tools/perf/Makefile.perf | |||
@@ -349,16 +349,6 @@ install-gtk: $(OUTPUT)libperf-gtk.so | |||
349 | $(INSTALL) $(OUTPUT)libperf-gtk.so '$(DESTDIR_SQ)$(libdir_SQ)' | 349 | $(INSTALL) $(OUTPUT)libperf-gtk.so '$(DESTDIR_SQ)$(libdir_SQ)' |
350 | endif | 350 | endif |
351 | 351 | ||
352 | ifndef NO_LIBPERL | ||
353 | LIB_OBJS += $(OUTPUT)util/scripting-engines/trace-event-perl.o | ||
354 | LIB_OBJS += $(OUTPUT)scripts/perl/Perf-Trace-Util/Context.o | ||
355 | endif | ||
356 | |||
357 | ifndef NO_LIBPYTHON | ||
358 | LIB_OBJS += $(OUTPUT)util/scripting-engines/trace-event-python.o | ||
359 | LIB_OBJS += $(OUTPUT)scripts/python/Perf-Trace-Util/Context.o | ||
360 | endif | ||
361 | |||
362 | ifeq ($(NO_PERF_REGS),0) | 352 | ifeq ($(NO_PERF_REGS),0) |
363 | ifeq ($(ARCH),x86) | 353 | ifeq ($(ARCH),x86) |
364 | LIB_H += arch/x86/include/perf_regs.h | 354 | LIB_H += arch/x86/include/perf_regs.h |
@@ -459,18 +449,6 @@ $(OUTPUT)%.o: %.S | |||
459 | $(OUTPUT)%.s: %.S | 449 | $(OUTPUT)%.s: %.S |
460 | $(QUIET_CC)$(CC) -o $@ -E $(CFLAGS) $< | 450 | $(QUIET_CC)$(CC) -o $@ -E $(CFLAGS) $< |
461 | 451 | ||
462 | $(OUTPUT)util/scripting-engines/trace-event-perl.o: util/scripting-engines/trace-event-perl.c $(OUTPUT)PERF-CFLAGS | ||
463 | $(QUIET_CC)$(CC) -o $@ -c $(CFLAGS) $(PERL_EMBED_CCOPTS) -Wno-redundant-decls -Wno-strict-prototypes -Wno-unused-parameter -Wno-shadow -Wno-undef -Wno-switch-default $< | ||
464 | |||
465 | $(OUTPUT)scripts/perl/Perf-Trace-Util/Context.o: scripts/perl/Perf-Trace-Util/Context.c $(OUTPUT)PERF-CFLAGS | ||
466 | $(QUIET_CC)$(CC) -o $@ -c $(CFLAGS) $(PERL_EMBED_CCOPTS) -Wno-redundant-decls -Wno-strict-prototypes -Wno-unused-parameter -Wno-nested-externs -Wno-undef -Wno-switch-default $< | ||
467 | |||
468 | $(OUTPUT)util/scripting-engines/trace-event-python.o: util/scripting-engines/trace-event-python.c $(OUTPUT)PERF-CFLAGS | ||
469 | $(QUIET_CC)$(CC) -o $@ -c $(CFLAGS) $(PYTHON_EMBED_CCOPTS) -Wno-redundant-decls -Wno-strict-prototypes -Wno-unused-parameter -Wno-shadow $< | ||
470 | |||
471 | $(OUTPUT)scripts/python/Perf-Trace-Util/Context.o: scripts/python/Perf-Trace-Util/Context.c $(OUTPUT)PERF-CFLAGS | ||
472 | $(QUIET_CC)$(CC) -o $@ -c $(CFLAGS) $(PYTHON_EMBED_CCOPTS) -Wno-redundant-decls -Wno-strict-prototypes -Wno-unused-parameter -Wno-nested-externs $< | ||
473 | |||
474 | $(OUTPUT)perf-%: %.o $(PERFLIBS) | 452 | $(OUTPUT)perf-%: %.o $(PERFLIBS) |
475 | $(QUIET_LINK)$(CC) $(CFLAGS) -o $@ $(LDFLAGS) $(filter %.o,$^) $(LIBS) | 453 | $(QUIET_LINK)$(CC) $(CFLAGS) -o $@ $(LDFLAGS) $(filter %.o,$^) $(LIBS) |
476 | 454 | ||