aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/Makefile
diff options
context:
space:
mode:
authorMichael Witten <mfwitten@gmail.com>2011-02-02 13:04:27 -0500
committerArnaldo Carvalho de Melo <acme@redhat.com>2011-02-18 04:42:36 -0500
commit0a54fb63600b745e060d24879ed5194382a466c5 (patch)
treeb65058818dac7df8f4d294cfe0109b6735439f91 /tools/perf/Makefile
parent8796cb9d7dc028945af4b2ea858ae8f8f2ecbe8c (diff)
perf tools: Makefile: Remove tool-specific cruft
This commit squashes several commits that remove: NO_C99_FORMAT CURLDIR and EXPATDIR NO_DEFLATE_BOUND CC_LD_DYNPATH and NO_R_TO_GCC_LINKER NO_PERL_MAKEMAKER INTERNAL_QSORT NO_EXTERNAL_GREP NO_PERL SCRIPT_PERL PERL_PATH_SQ Signed-off-by: Michael Witten <mfwitten@gmail.com> LKML-Reference: <new-submission> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/Makefile')
-rw-r--r--tools/perf/Makefile73
1 files changed, 1 insertions, 72 deletions
diff --git a/tools/perf/Makefile b/tools/perf/Makefile
index 53c1e93ac432..fde196fe9366 100644
--- a/tools/perf/Makefile
+++ b/tools/perf/Makefile
@@ -14,40 +14,10 @@ endif
14# Define V=1 to have a more verbose compile. 14# Define V=1 to have a more verbose compile.
15# Define V=2 to have an even more verbose compile. 15# Define V=2 to have an even more verbose compile.
16# 16#
17# Define CURLDIR=/foo/bar if your curl header and library files are in
18# /foo/bar/include and /foo/bar/lib directories.
19#
20# Define EXPATDIR=/foo/bar if your expat header and library files are in
21# /foo/bar/include and /foo/bar/lib directories.
22#
23# Define NO_C99_FORMAT if your formatted IO functions (printf/scanf et.al.)
24# do not support the 'size specifiers' introduced by C99, namely ll, hh,
25# j, z, t. (representing long long int, char, intmax_t, size_t, ptrdiff_t).
26# some C compilers supported these specifiers prior to C99 as an extension.
27#
28# Define NO_DEFLATE_BOUND if your zlib does not have deflateBound.
29#
30# Define NO_R_TO_GCC_LINKER if your gcc does not like "-R/path/lib"
31# that tells runtime paths to dynamic libraries;
32# "-Wl,-rpath=/path/lib" is used instead.
33#
34# Define ASCIIDOC8 if you want to format documentation with AsciiDoc 8 17# Define ASCIIDOC8 if you want to format documentation with AsciiDoc 8
35# 18#
36# Define DOCBOOK_XSL_172 if you want to format man pages with DocBook XSL v1.72. 19# Define DOCBOOK_XSL_172 if you want to format man pages with DocBook XSL v1.72.
37# 20#
38# Define NO_PERL_MAKEMAKER if you cannot use Makefiles generated by perl's
39# MakeMaker (e.g. using ActiveState under Cygwin).
40#
41# Define NO_PERL if you do not want Perl scripts or libraries at all.
42#
43# Define INTERNAL_QSORT to use Git's implementation of qsort(), which
44# is a simplified version of the merge sort used in glibc. This is
45# recommended if Git triggers O(n^2) behavior in your platform's qsort().
46#
47# Define NO_EXTERNAL_GREP if you don't want "perf grep" to ever call
48# your external grep (e.g., if your system lacks grep, if its grep is
49# broken, or spawning external process is slower than built-in grep perf has).
50#
51# Define LDFLAGS=-static to build a static binary. 21# Define LDFLAGS=-static to build a static binary.
52# 22#
53# Define EXTRA_CFLAGS=-m64 or EXTRA_CFLAGS=-m32 as appropriate for cross-builds. 23# Define EXTRA_CFLAGS=-m64 or EXTRA_CFLAGS=-m32 as appropriate for cross-builds.
@@ -205,7 +175,6 @@ BUILT_INS =
205LIB_H = 175LIB_H =
206LIB_OBJS = 176LIB_OBJS =
207PYRF_OBJS = 177PYRF_OBJS =
208SCRIPT_PERL =
209SCRIPT_SH = 178SCRIPT_SH =
210TEST_PROGRAMS = 179TEST_PROGRAMS =
211 180
@@ -221,10 +190,7 @@ $(OUTPUT)python/perf.so: $(PYRF_OBJS)
221# No Perl scripts right now: 190# No Perl scripts right now:
222# 191#
223 192
224# SCRIPT_PERL += perf-add--interactive.perl 193SCRIPTS = $(patsubst %.sh,%,$(SCRIPT_SH))
225
226SCRIPTS = $(patsubst %.sh,%,$(SCRIPT_SH)) \
227 $(patsubst %.perl,%,$(SCRIPT_PERL))
228 194
229# Empty... 195# Empty...
230EXTRA_PROGRAMS = 196EXTRA_PROGRAMS =
@@ -599,43 +565,10 @@ else
599 endif 565 endif
600endif 566endif
601 567
602ifndef CC_LD_DYNPATH
603 ifdef NO_R_TO_GCC_LINKER
604 # Some gcc does not accept and pass -R to the linker to specify
605 # the runtime dynamic library path.
606 CC_LD_DYNPATH = -Wl,-rpath,
607 else
608 CC_LD_DYNPATH = -R
609 endif
610endif
611
612ifdef NO_C99_FORMAT
613 BASIC_CFLAGS += -DNO_C99_FORMAT
614endif
615
616ifdef NO_DEFLATE_BOUND
617 BASIC_CFLAGS += -DNO_DEFLATE_BOUND
618endif
619
620ifdef NO_PERL_MAKEMAKER
621 export NO_PERL_MAKEMAKER
622endif
623ifdef INTERNAL_QSORT
624 COMPAT_CFLAGS += -DINTERNAL_QSORT
625 COMPAT_OBJS += $(OUTPUT)compat/qsort.o
626endif
627ifdef RUNTIME_PREFIX 568ifdef RUNTIME_PREFIX
628 COMPAT_CFLAGS += -DRUNTIME_PREFIX 569 COMPAT_CFLAGS += -DRUNTIME_PREFIX
629endif 570endif
630 571
631ifdef NO_EXTERNAL_GREP
632 BASIC_CFLAGS += -DNO_EXTERNAL_GREP
633endif
634
635ifeq ($(PERL_PATH),)
636NO_PERL=NoThanks
637endif
638
639QUIET_SUBDIR0 = +$(MAKE) -C # space to separate -C and subdir 572QUIET_SUBDIR0 = +$(MAKE) -C # space to separate -C and subdir
640QUIET_SUBDIR1 = 573QUIET_SUBDIR1 =
641 574
@@ -681,7 +614,6 @@ htmldir_SQ = $(subst ','\'',$(htmldir))
681prefix_SQ = $(subst ','\'',$(prefix)) 614prefix_SQ = $(subst ','\'',$(prefix))
682 615
683SHELL_PATH_SQ = $(subst ','\'',$(SHELL_PATH)) 616SHELL_PATH_SQ = $(subst ','\'',$(SHELL_PATH))
684PERL_PATH_SQ = $(subst ','\'',$(PERL_PATH))
685 617
686LIBS = -Wl,--whole-archive $(PERFLIBS) -Wl,--no-whole-archive $(EXTLIBS) 618LIBS = -Wl,--whole-archive $(PERFLIBS) -Wl,--no-whole-archive $(EXTLIBS)
687 619
@@ -744,7 +676,6 @@ $(patsubst %.sh,%,$(SCRIPT_SH)) : % : %.sh
744 $(QUIET_GEN)$(RM) $(OUTPUT)$@ $(OUTPUT)$@+ && \ 676 $(QUIET_GEN)$(RM) $(OUTPUT)$@ $(OUTPUT)$@+ && \
745 sed -e '1s|#!.*/sh|#!$(SHELL_PATH_SQ)|' \ 677 sed -e '1s|#!.*/sh|#!$(SHELL_PATH_SQ)|' \
746 -e 's|@SHELL_PATH@|$(SHELL_PATH_SQ)|' \ 678 -e 's|@SHELL_PATH@|$(SHELL_PATH_SQ)|' \
747 -e 's|@@PERL@@|$(PERL_PATH_SQ)|g' \
748 -e 's/@@PERF_VERSION@@/$(PERF_VERSION)/g' \ 679 -e 's/@@PERF_VERSION@@/$(PERF_VERSION)/g' \
749 -e 's/@@NO_CURL@@/$(NO_CURL)/g' \ 680 -e 's/@@NO_CURL@@/$(NO_CURL)/g' \
750 $@.sh > $(OUTPUT)$@+ && \ 681 $@.sh > $(OUTPUT)$@+ && \
@@ -761,7 +692,6 @@ configure: configure.ac
761# These can record PERF_VERSION 692# These can record PERF_VERSION
762$(OUTPUT)perf.o perf.spec \ 693$(OUTPUT)perf.o perf.spec \
763 $(patsubst %.sh,%,$(SCRIPT_SH)) \ 694 $(patsubst %.sh,%,$(SCRIPT_SH)) \
764 $(patsubst %.perl,%,$(SCRIPT_PERL)) \
765 : $(OUTPUT)PERF-VERSION-FILE 695 : $(OUTPUT)PERF-VERSION-FILE
766 696
767$(OUTPUT)%.o: %.c $(OUTPUT)PERF-CFLAGS 697$(OUTPUT)%.o: %.c $(OUTPUT)PERF-CFLAGS
@@ -903,7 +833,6 @@ $(OUTPUT)PERF-BUILD-OPTIONS: .FORCE-PERF-BUILD-OPTIONS
903 @echo SHELL_PATH=\''$(subst ','\'',$(SHELL_PATH_SQ))'\' >$@ 833 @echo SHELL_PATH=\''$(subst ','\'',$(SHELL_PATH_SQ))'\' >$@
904 @echo TAR=\''$(subst ','\'',$(subst ','\'',$(TAR)))'\' >>$@ 834 @echo TAR=\''$(subst ','\'',$(subst ','\'',$(TAR)))'\' >>$@
905 @echo NO_CURL=\''$(subst ','\'',$(subst ','\'',$(NO_CURL)))'\' >>$@ 835 @echo NO_CURL=\''$(subst ','\'',$(subst ','\'',$(NO_CURL)))'\' >>$@
906 @echo NO_PERL=\''$(subst ','\'',$(subst ','\'',$(NO_PERL)))'\' >>$@
907 836
908### Testing rules 837### Testing rules
909 838