perf tools: Adjust make rules
commit4a3d2d9bfb3b594b6e1f2b7eabfaf4e820a18c0e
authorJan Beulich <JBeulich@suse.com>
Thu, 8 Mar 2012 09:29:28 +0000 (8 09:29 +0000)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 15 Mar 2012 17:23:28 +0000 (15 14:23 -0300)
treec668b664902ec05499dd359a1265513872290da4
parentbea95c152dee1791dd02cbc708afbb115bb00f9a
perf tools: Adjust make rules

Add rules to generate pre-processed files (just like are available for
the normal kernel build), and adjust the rule to create assembly files
from C ones to produce its output in the output directory rather than
in the source tree.

E.g.

  $ make -C tools/perf/ O=/tmp/perf /tmp/perf/builtin-top.i
  make: Entering directory `/home/git/linux/tools/perf'
      CC /tmp/perf/builtin-top.i
  make: Leaving directory `/home/git/linux/tools/perf'
  $ wc -l /tmp/perf/builtin-top.i
  31379 /tmp/perf/builtin-top.i
  $

Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/4F588A0802000078000770FF@nat28.tlf.novell.com
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/Makefile