Skip to content

Commit 0a54fb6

Browse files
mfwittenacmel
authored andcommitted
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 <[email protected]> LKML-Reference: <new-submission> Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
1 parent 8796cb9 commit 0a54fb6

File tree

1 file changed

+1
-72
lines changed

1 file changed

+1
-72
lines changed

tools/perf/Makefile

Lines changed: 1 addition & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -14,40 +14,10 @@ endif
1414
# Define V=1 to have a more verbose compile.
1515
# Define V=2 to have an even more verbose compile.
1616
#
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-
#
3417
# Define ASCIIDOC8 if you want to format documentation with AsciiDoc 8
3518
#
3619
# Define DOCBOOK_XSL_172 if you want to format man pages with DocBook XSL v1.72.
3720
#
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-
#
5121
# Define LDFLAGS=-static to build a static binary.
5222
#
5323
# Define EXTRA_CFLAGS=-m64 or EXTRA_CFLAGS=-m32 as appropriate for cross-builds.
@@ -205,7 +175,6 @@ BUILT_INS =
205175
LIB_H =
206176
LIB_OBJS =
207177
PYRF_OBJS =
208-
SCRIPT_PERL =
209178
SCRIPT_SH =
210179
TEST_PROGRAMS =
211180

@@ -221,10 +190,7 @@ $(OUTPUT)python/perf.so: $(PYRF_OBJS)
221190
# No Perl scripts right now:
222191
#
223192

224-
# SCRIPT_PERL += perf-add--interactive.perl
225-
226-
SCRIPTS = $(patsubst %.sh,%,$(SCRIPT_SH)) \
227-
$(patsubst %.perl,%,$(SCRIPT_PERL))
193+
SCRIPTS = $(patsubst %.sh,%,$(SCRIPT_SH))
228194

229195
# Empty...
230196
EXTRA_PROGRAMS =
@@ -599,43 +565,10 @@ else
599565
endif
600566
endif
601567

602-
ifndef 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
610-
endif
611-
612-
ifdef NO_C99_FORMAT
613-
BASIC_CFLAGS += -DNO_C99_FORMAT
614-
endif
615-
616-
ifdef NO_DEFLATE_BOUND
617-
BASIC_CFLAGS += -DNO_DEFLATE_BOUND
618-
endif
619-
620-
ifdef NO_PERL_MAKEMAKER
621-
export NO_PERL_MAKEMAKER
622-
endif
623-
ifdef INTERNAL_QSORT
624-
COMPAT_CFLAGS += -DINTERNAL_QSORT
625-
COMPAT_OBJS += $(OUTPUT)compat/qsort.o
626-
endif
627568
ifdef RUNTIME_PREFIX
628569
COMPAT_CFLAGS += -DRUNTIME_PREFIX
629570
endif
630571

631-
ifdef NO_EXTERNAL_GREP
632-
BASIC_CFLAGS += -DNO_EXTERNAL_GREP
633-
endif
634-
635-
ifeq ($(PERL_PATH),)
636-
NO_PERL=NoThanks
637-
endif
638-
639572
QUIET_SUBDIR0 = +$(MAKE) -C # space to separate -C and subdir
640573
QUIET_SUBDIR1 =
641574

@@ -681,7 +614,6 @@ htmldir_SQ = $(subst ','\'',$(htmldir))
681614
prefix_SQ = $(subst ','\'',$(prefix))
682615

683616
SHELL_PATH_SQ = $(subst ','\'',$(SHELL_PATH))
684-
PERL_PATH_SQ = $(subst ','\'',$(PERL_PATH))
685617

686618
LIBS = -Wl,--whole-archive $(PERFLIBS) -Wl,--no-whole-archive $(EXTLIBS)
687619

@@ -744,7 +676,6 @@ $(patsubst %.sh,%,$(SCRIPT_SH)) : % : %.sh
744676
$(QUIET_GEN)$(RM) $(OUTPUT)$@ $(OUTPUT)$@+ && \
745677
sed -e '1s|#!.*/sh|#!$(SHELL_PATH_SQ)|' \
746678
-e 's|@SHELL_PATH@|$(SHELL_PATH_SQ)|' \
747-
-e 's|@@PERL@@|$(PERL_PATH_SQ)|g' \
748679
-e 's/@@PERF_VERSION@@/$(PERF_VERSION)/g' \
749680
-e 's/@@NO_CURL@@/$(NO_CURL)/g' \
750681
$@.sh > $(OUTPUT)$@+ && \
@@ -761,7 +692,6 @@ configure: configure.ac
761692
# These can record PERF_VERSION
762693
$(OUTPUT)perf.o perf.spec \
763694
$(patsubst %.sh,%,$(SCRIPT_SH)) \
764-
$(patsubst %.perl,%,$(SCRIPT_PERL)) \
765695
: $(OUTPUT)PERF-VERSION-FILE
766696

767697
$(OUTPUT)%.o: %.c $(OUTPUT)PERF-CFLAGS
@@ -903,7 +833,6 @@ $(OUTPUT)PERF-BUILD-OPTIONS: .FORCE-PERF-BUILD-OPTIONS
903833
@echo SHELL_PATH=\''$(subst ','\'',$(SHELL_PATH_SQ))'\' >$@
904834
@echo TAR=\''$(subst ','\'',$(subst ','\'',$(TAR)))'\' >>$@
905835
@echo NO_CURL=\''$(subst ','\'',$(subst ','\'',$(NO_CURL)))'\' >>$@
906-
@echo NO_PERL=\''$(subst ','\'',$(subst ','\'',$(NO_PERL)))'\' >>$@
907836

908837
### Testing rules
909838

0 commit comments

Comments
 (0)