@@ -14,40 +14,10 @@ endif
14
14
# Define V=1 to have a more verbose compile.
15
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
17
# Define ASCIIDOC8 if you want to format documentation with AsciiDoc 8
35
18
#
36
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
21
# Define LDFLAGS=-static to build a static binary.
52
22
#
53
23
# Define EXTRA_CFLAGS=-m64 or EXTRA_CFLAGS=-m32 as appropriate for cross-builds.
@@ -205,7 +175,6 @@ BUILT_INS =
205
175
LIB_H =
206
176
LIB_OBJS =
207
177
PYRF_OBJS =
208
- SCRIPT_PERL =
209
178
SCRIPT_SH =
210
179
TEST_PROGRAMS =
211
180
@@ -221,10 +190,7 @@ $(OUTPUT)python/perf.so: $(PYRF_OBJS)
221
190
# No Perl scripts right now:
222
191
#
223
192
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 ) )
228
194
229
195
# Empty...
230
196
EXTRA_PROGRAMS =
@@ -599,43 +565,10 @@ else
599
565
endif
600
566
endif
601
567
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
627
568
ifdef RUNTIME_PREFIX
628
569
COMPAT_CFLAGS += -DRUNTIME_PREFIX
629
570
endif
630
571
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
-
639
572
QUIET_SUBDIR0 = +$(MAKE ) -C # space to separate -C and subdir
640
573
QUIET_SUBDIR1 =
641
574
@@ -681,7 +614,6 @@ htmldir_SQ = $(subst ','\'',$(htmldir))
681
614
prefix_SQ = $(subst ','\'',$(prefix ) )
682
615
683
616
SHELL_PATH_SQ = $(subst ','\'',$(SHELL_PATH ) )
684
- PERL_PATH_SQ = $(subst ','\'',$(PERL_PATH ) )
685
617
686
618
LIBS = -Wl,--whole-archive $(PERFLIBS ) -Wl,--no-whole-archive $(EXTLIBS )
687
619
@@ -744,7 +676,6 @@ $(patsubst %.sh,%,$(SCRIPT_SH)) : % : %.sh
744
676
$(QUIET_GEN )$(RM ) $(OUTPUT ) $@ $(OUTPUT ) $@ + && \
745
677
sed -e ' 1s|#!.*/sh|#!$(SHELL_PATH_SQ)|' \
746
678
-e ' s|@SHELL_PATH@|$(SHELL_PATH_SQ)|' \
747
- -e ' s|@@PERL@@|$(PERL_PATH_SQ)|g' \
748
679
-e ' s/@@PERF_VERSION@@/$(PERF_VERSION)/g' \
749
680
-e ' s/@@NO_CURL@@/$(NO_CURL)/g' \
750
681
$@ .sh > $(OUTPUT ) $@ + && \
@@ -761,7 +692,6 @@ configure: configure.ac
761
692
# These can record PERF_VERSION
762
693
$(OUTPUT)perf.o perf.spec \
763
694
$(patsubst %.sh,%,$(SCRIPT_SH)) \
764
- $(patsubst %.perl,%,$(SCRIPT_PERL)) \
765
695
: $(OUTPUT)PERF-VERSION-FILE
766
696
767
697
$(OUTPUT ) % .o : % .c $(OUTPUT ) PERF-CFLAGS
@@ -903,7 +833,6 @@ $(OUTPUT)PERF-BUILD-OPTIONS: .FORCE-PERF-BUILD-OPTIONS
903
833
@echo SHELL_PATH=\' ' $(subst ' ,' \' ' ,$(SHELL_PATH_SQ))' \' > $@
904
834
@echo TAR=\' ' $(subst ' ,' \' ' ,$(subst ' ,' \' ' ,$(TAR)))' \' >> $@
905
835
@echo NO_CURL=\' ' $(subst ' ,' \' ' ,$(subst ' ,' \' ' ,$(NO_CURL)))' \' >> $@
906
- @echo NO_PERL=\' ' $(subst ' ,' \' ' ,$(subst ' ,' \' ' ,$(NO_PERL)))' \' >> $@
907
836
908
837
# ## Testing rules
909
838
0 commit comments