diff options
author | Jan Beulich <JBeulich@suse.com> | 2012-03-08 04:29:28 -0500 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2012-03-15 13:23:28 -0400 |
commit | 4a3d2d9bfb3b594b6e1f2b7eabfaf4e820a18c0e (patch) | |
tree | c668b664902ec05499dd359a1265513872290da4 /tools/perf/Makefile | |
parent | bea95c152dee1791dd02cbc708afbb115bb00f9a (diff) |
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>
Diffstat (limited to 'tools/perf/Makefile')
-rw-r--r-- | tools/perf/Makefile | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/perf/Makefile b/tools/perf/Makefile index fa043404479e..bd328554aec2 100644 --- a/tools/perf/Makefile +++ b/tools/perf/Makefile | |||
@@ -727,10 +727,14 @@ $(OUTPUT)perf.o perf.spec \ | |||
727 | 727 | ||
728 | $(OUTPUT)%.o: %.c $(OUTPUT)PERF-CFLAGS | 728 | $(OUTPUT)%.o: %.c $(OUTPUT)PERF-CFLAGS |
729 | $(QUIET_CC)$(CC) -o $@ -c $(ALL_CFLAGS) $< | 729 | $(QUIET_CC)$(CC) -o $@ -c $(ALL_CFLAGS) $< |
730 | $(OUTPUT)%.i: %.c $(OUTPUT)PERF-CFLAGS | ||
731 | $(QUIET_CC)$(CC) -o $@ -E $(ALL_CFLAGS) $< | ||
730 | $(OUTPUT)%.s: %.c $(OUTPUT)PERF-CFLAGS | 732 | $(OUTPUT)%.s: %.c $(OUTPUT)PERF-CFLAGS |
731 | $(QUIET_CC)$(CC) -S $(ALL_CFLAGS) $< | 733 | $(QUIET_CC)$(CC) -o $@ -S $(ALL_CFLAGS) $< |
732 | $(OUTPUT)%.o: %.S | 734 | $(OUTPUT)%.o: %.S |
733 | $(QUIET_CC)$(CC) -o $@ -c $(ALL_CFLAGS) $< | 735 | $(QUIET_CC)$(CC) -o $@ -c $(ALL_CFLAGS) $< |
736 | $(OUTPUT)%.s: %.S | ||
737 | $(QUIET_CC)$(CC) -o $@ -E $(ALL_CFLAGS) $< | ||
734 | 738 | ||
735 | $(OUTPUT)util/exec_cmd.o: util/exec_cmd.c $(OUTPUT)PERF-CFLAGS | 739 | $(OUTPUT)util/exec_cmd.o: util/exec_cmd.c $(OUTPUT)PERF-CFLAGS |
736 | $(QUIET_CC)$(CC) -o $@ -c $(ALL_CFLAGS) \ | 740 | $(QUIET_CC)$(CC) -o $@ -c $(ALL_CFLAGS) \ |