diff options
Diffstat (limited to 'Documentation/perf_counter/Makefile')
-rw-r--r-- | Documentation/perf_counter/Makefile | 60 |
1 files changed, 31 insertions, 29 deletions
diff --git a/Documentation/perf_counter/Makefile b/Documentation/perf_counter/Makefile index 690045e49692..543ccf28ac4a 100644 --- a/Documentation/perf_counter/Makefile +++ b/Documentation/perf_counter/Makefile | |||
@@ -147,7 +147,7 @@ all:: | |||
147 | # broken, or spawning external process is slower than built-in grep perf has). | 147 | # broken, or spawning external process is slower than built-in grep perf has). |
148 | 148 | ||
149 | PERF-VERSION-FILE: .FORCE-PERF-VERSION-FILE | 149 | PERF-VERSION-FILE: .FORCE-PERF-VERSION-FILE |
150 | @$(SHELL_PATH) ./PERF-VERSION-GEN | 150 | @$(SHELL_PATH) util/PERF-VERSION-GEN |
151 | -include PERF-VERSION-FILE | 151 | -include PERF-VERSION-FILE |
152 | 152 | ||
153 | uname_S := $(shell sh -c 'uname -s 2>/dev/null || echo not') | 153 | uname_S := $(shell sh -c 'uname -s 2>/dev/null || echo not') |
@@ -287,26 +287,28 @@ export PERL_PATH | |||
287 | LIB_FILE=libperf.a | 287 | LIB_FILE=libperf.a |
288 | 288 | ||
289 | LIB_H += ../../include/linux/perf_counter.h | 289 | LIB_H += ../../include/linux/perf_counter.h |
290 | LIB_H += levenshtein.h | 290 | LIB_H += util/levenshtein.h |
291 | LIB_H += parse-options.h | 291 | LIB_H += util/parse-options.h |
292 | LIB_H += quote.h | 292 | LIB_H += util/quote.h |
293 | LIB_H += strbuf.h | 293 | LIB_H += util/util.h |
294 | LIB_H += run-command.h | 294 | LIB_H += util/help.h |
295 | 295 | LIB_H += util/strbuf.h | |
296 | LIB_OBJS += abspath.o | 296 | LIB_H += util/run-command.h |
297 | LIB_OBJS += alias.o | 297 | |
298 | LIB_OBJS += config.o | 298 | LIB_OBJS += util/abspath.o |
299 | LIB_OBJS += ctype.o | 299 | LIB_OBJS += util/alias.o |
300 | LIB_OBJS += exec_cmd.o | 300 | LIB_OBJS += util/config.o |
301 | LIB_OBJS += help.o | 301 | LIB_OBJS += util/ctype.o |
302 | LIB_OBJS += levenshtein.o | 302 | LIB_OBJS += util/exec_cmd.o |
303 | LIB_OBJS += parse-options.o | 303 | LIB_OBJS += util/help.o |
304 | LIB_OBJS += path.o | 304 | LIB_OBJS += util/levenshtein.o |
305 | LIB_OBJS += run-command.o | 305 | LIB_OBJS += util/parse-options.o |
306 | LIB_OBJS += quote.o | 306 | LIB_OBJS += util/path.o |
307 | LIB_OBJS += strbuf.o | 307 | LIB_OBJS += util/run-command.o |
308 | LIB_OBJS += usage.o | 308 | LIB_OBJS += util/quote.o |
309 | LIB_OBJS += wrapper.o | 309 | LIB_OBJS += util/strbuf.o |
310 | LIB_OBJS += util/usage.o | ||
311 | LIB_OBJS += util/wrapper.o | ||
310 | 312 | ||
311 | BUILTIN_OBJS += builtin-help.o | 313 | BUILTIN_OBJS += builtin-help.o |
312 | BUILTIN_OBJS += builtin-record.o | 314 | BUILTIN_OBJS += builtin-record.o |
@@ -620,10 +622,10 @@ $(BUILT_INS): perf$X | |||
620 | ln -s perf$X $@ 2>/dev/null || \ | 622 | ln -s perf$X $@ 2>/dev/null || \ |
621 | cp perf$X $@ | 623 | cp perf$X $@ |
622 | 624 | ||
623 | common-cmds.h: ./generate-cmdlist.sh command-list.txt | 625 | common-cmds.h: util/generate-cmdlist.sh command-list.txt |
624 | 626 | ||
625 | common-cmds.h: $(wildcard Documentation/perf-*.txt) | 627 | common-cmds.h: $(wildcard Documentation/perf-*.txt) |
626 | $(QUIET_GEN)./generate-cmdlist.sh > $@+ && mv $@+ $@ | 628 | $(QUIET_GEN)util/generate-cmdlist.sh > $@+ && mv $@+ $@ |
627 | 629 | ||
628 | $(patsubst %.sh,%,$(SCRIPT_SH)) : % : %.sh | 630 | $(patsubst %.sh,%,$(SCRIPT_SH)) : % : %.sh |
629 | $(QUIET_GEN)$(RM) $@ $@+ && \ | 631 | $(QUIET_GEN)$(RM) $@ $@+ && \ |
@@ -656,7 +658,7 @@ perf.o perf.spec \ | |||
656 | %.o: %.S | 658 | %.o: %.S |
657 | $(QUIET_CC)$(CC) -o $*.o -c $(ALL_CFLAGS) $< | 659 | $(QUIET_CC)$(CC) -o $*.o -c $(ALL_CFLAGS) $< |
658 | 660 | ||
659 | exec_cmd.o: exec_cmd.c PERF-CFLAGS | 661 | util/exec_cmd.o: util/exec_cmd.c PERF-CFLAGS |
660 | $(QUIET_CC)$(CC) -o $*.o -c $(ALL_CFLAGS) \ | 662 | $(QUIET_CC)$(CC) -o $*.o -c $(ALL_CFLAGS) \ |
661 | '-DPERF_EXEC_PATH="$(perfexecdir_SQ)"' \ | 663 | '-DPERF_EXEC_PATH="$(perfexecdir_SQ)"' \ |
662 | '-DBINDIR="$(bindir_relative_SQ)"' \ | 664 | '-DBINDIR="$(bindir_relative_SQ)"' \ |
@@ -666,7 +668,7 @@ exec_cmd.o: exec_cmd.c PERF-CFLAGS | |||
666 | builtin-init-db.o: builtin-init-db.c PERF-CFLAGS | 668 | builtin-init-db.o: builtin-init-db.c PERF-CFLAGS |
667 | $(QUIET_CC)$(CC) -o $*.o -c $(ALL_CFLAGS) -DDEFAULT_PERF_TEMPLATE_DIR='"$(template_dir_SQ)"' $< | 669 | $(QUIET_CC)$(CC) -o $*.o -c $(ALL_CFLAGS) -DDEFAULT_PERF_TEMPLATE_DIR='"$(template_dir_SQ)"' $< |
668 | 670 | ||
669 | config.o: config.c PERF-CFLAGS | 671 | util/config.o: util/config.c PERF-CFLAGS |
670 | $(QUIET_CC)$(CC) -o $*.o -c $(ALL_CFLAGS) -DETC_PERFCONFIG='"$(ETC_PERFCONFIG_SQ)"' $< | 672 | $(QUIET_CC)$(CC) -o $*.o -c $(ALL_CFLAGS) -DETC_PERFCONFIG='"$(ETC_PERFCONFIG_SQ)"' $< |
671 | 673 | ||
672 | perf-%$X: %.o $(PERFLIBS) | 674 | perf-%$X: %.o $(PERFLIBS) |
@@ -729,7 +731,7 @@ export NO_SVN_TESTS | |||
729 | check: common-cmds.h | 731 | check: common-cmds.h |
730 | if sparse; \ | 732 | if sparse; \ |
731 | then \ | 733 | then \ |
732 | for i in *.c; \ | 734 | for i in *.c */*.c; \ |
733 | do \ | 735 | do \ |
734 | sparse $(ALL_CFLAGS) $(SPARSE_FLAGS) $$i || exit; \ | 736 | sparse $(ALL_CFLAGS) $(SPARSE_FLAGS) $$i || exit; \ |
735 | done; \ | 737 | done; \ |
@@ -795,7 +797,7 @@ distclean: clean | |||
795 | $(RM) configure | 797 | $(RM) configure |
796 | 798 | ||
797 | clean: | 799 | clean: |
798 | $(RM) *.o $(LIB_FILE) | 800 | $(RM) *.o */*.o $(LIB_FILE) |
799 | $(RM) $(ALL_PROGRAMS) $(BUILT_INS) perf$X | 801 | $(RM) $(ALL_PROGRAMS) $(BUILT_INS) perf$X |
800 | $(RM) $(TEST_PROGRAMS) | 802 | $(RM) $(TEST_PROGRAMS) |
801 | $(RM) *.spec *.pyc *.pyo */*.pyc */*.pyo common-cmds.h TAGS tags cscope* | 803 | $(RM) *.spec *.pyc *.pyo */*.pyc */*.pyo common-cmds.h TAGS tags cscope* |
@@ -836,7 +838,7 @@ coverage-build: coverage-clean | |||
836 | -j1 test | 838 | -j1 test |
837 | 839 | ||
838 | coverage-report: | 840 | coverage-report: |
839 | gcov -b *.c | 841 | gcov -b *.c */*.c |
840 | grep '^function.*called 0 ' *.c.gcov \ | 842 | grep '^function.*called 0 ' *.c.gcov */*.c.gcov \ |
841 | | sed -e 's/\([^:]*\)\.gcov: *function \([^ ]*\) called.*/\1: \2/' \ | 843 | | sed -e 's/\([^:]*\)\.gcov: *function \([^ ]*\) called.*/\1: \2/' \ |
842 | | tee coverage-untested-functions | 844 | | tee coverage-untested-functions |