aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/Makefile
diff options
context:
space:
mode:
authorMichael Witten <mfwitten@gmail.com>2011-02-02 14:01:41 -0500
committerArnaldo Carvalho de Melo <acme@redhat.com>2011-02-18 04:40:54 -0500
commit006cdc32618e09ffe228a7a86af044f3cc0dd714 (patch)
tree623364c68124d61e0b70c906034e4d00c70b1087 /tools/perf/Makefile
parent02ca752e4181e219e243cd61a60dd1da47251f11 (diff)
perf tools: Makefile: Remove vestigial git-specific cruft
This commit squashes several commits that remove: NO_SYMLINK_HEAD NO_SVN_TESTS NO_FAST_WORKING_DIRECTORY USE_STDEV SHA1/SSL cruft makefile rules 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/Makefile62
1 files changed, 1 insertions, 61 deletions
diff --git a/tools/perf/Makefile b/tools/perf/Makefile
index 7c75f1d45f5..544367cf6d5 100644
--- a/tools/perf/Makefile
+++ b/tools/perf/Makefile
@@ -21,9 +21,6 @@ endif
21# Define FREAD_READS_DIRECTORIES if your are on a system which succeeds 21# Define FREAD_READS_DIRECTORIES if your are on a system which succeeds
22# when attempting to read from an fopen'ed directory. 22# when attempting to read from an fopen'ed directory.
23# 23#
24# Define NO_OPENSSL environment variable if you do not have OpenSSL.
25# This also implies MOZILLA_SHA1.
26#
27# Define CURLDIR=/foo/bar if your curl header and library files are in 24# Define CURLDIR=/foo/bar if your curl header and library files are in
28# /foo/bar/include and /foo/bar/lib directories. 25# /foo/bar/include and /foo/bar/lib directories.
29# 26#
@@ -56,13 +53,6 @@ endif
56# 53#
57# Define NO_SYS_SELECT_H if you don't have sys/select.h. 54# Define NO_SYS_SELECT_H if you don't have sys/select.h.
58# 55#
59# Define NO_SYMLINK_HEAD if you never want .perf/HEAD to be a symbolic link.
60# Enable it on Windows. By default, symrefs are still used.
61#
62# Define NO_SVN_TESTS if you want to skip time-consuming SVN interoperability
63# tests. These tests take up a significant amount of the total test time
64# but are not needed unless you plan to talk to SVN repos.
65#
66# Define NO_FINK if you are building on Darwin/Mac OS X, have Fink 56# Define NO_FINK if you are building on Darwin/Mac OS X, have Fink
67# installed in /sw, but don't want PERF to link against any libraries 57# installed in /sw, but don't want PERF to link against any libraries
68# installed there. If defined you may specify your own (or Fink's) 58# installed there. If defined you may specify your own (or Fink's)
@@ -75,19 +65,6 @@ endif
75# specify your own (or DarwinPort's) include directories and 65# specify your own (or DarwinPort's) include directories and
76# library directories by defining CFLAGS and LDFLAGS appropriately. 66# library directories by defining CFLAGS and LDFLAGS appropriately.
77# 67#
78# Define PPC_SHA1 environment variable when running make to make use of
79# a bundled SHA1 routine optimized for PowerPC.
80#
81# Define ARM_SHA1 environment variable when running make to make use of
82# a bundled SHA1 routine optimized for ARM.
83#
84# Define MOZILLA_SHA1 environment variable when running make to make use of
85# a bundled SHA1 routine coming from Mozilla. It is GPL'd and should be fast
86# on non-x86 architectures (e.g. PowerPC), while the OpenSSL version (default
87# choice) has very fast version optimized for i586.
88#
89# Define NEEDS_SSL_WITH_CRYPTO if you need -lcrypto with -lssl (Darwin).
90#
91# Define NEEDS_LIBICONV if linking with libc is not enough (Darwin). 68# Define NEEDS_LIBICONV if linking with libc is not enough (Darwin).
92# 69#
93# Define NEEDS_SOCKET if linking with libc is not enough (SunOS, 70# Define NEEDS_SOCKET if linking with libc is not enough (SunOS,
@@ -100,9 +77,6 @@ endif
100# Define NO_PREAD if you have a problem with pread() system call (e.g. 77# Define NO_PREAD if you have a problem with pread() system call (e.g.
101# cygwin.dll before v1.5.22). 78# cygwin.dll before v1.5.22).
102# 79#
103# Define NO_FAST_WORKING_DIRECTORY if accessing objects in pack files is
104# generally faster on your platform than accessing the working directory.
105#
106# Define NO_TRUSTABLE_FILEMODE if your filesystem may claim to support 80# Define NO_TRUSTABLE_FILEMODE if your filesystem may claim to support
107# the executable mode bit, but doesn't really do so. 81# the executable mode bit, but doesn't really do so.
108# 82#
@@ -134,9 +108,6 @@ endif
134# Define NO_NSEC if your "struct stat" does not have "st_ctim.tv_nsec" 108# Define NO_NSEC if your "struct stat" does not have "st_ctim.tv_nsec"
135# available. This automatically turns USE_NSEC off. 109# available. This automatically turns USE_NSEC off.
136# 110#
137# Define USE_STDEV below if you want perf to care about the underlying device
138# change being considered an inode change from the update-index perspective.
139#
140# Define NO_ST_BLOCKS_IN_STRUCT_STAT if your platform does not have st_blocks 111# Define NO_ST_BLOCKS_IN_STRUCT_STAT if your platform does not have st_blocks
141# field that counts the on-disk footprint in 512-byte blocks. 112# field that counts the on-disk footprint in 512-byte blocks.
142# 113#
@@ -771,9 +742,6 @@ ifdef FREAD_READS_DIRECTORIES
771 COMPAT_CFLAGS += -DFREAD_READS_DIRECTORIES 742 COMPAT_CFLAGS += -DFREAD_READS_DIRECTORIES
772 COMPAT_OBJS += $(OUTPUT)compat/fopen.o 743 COMPAT_OBJS += $(OUTPUT)compat/fopen.o
773endif 744endif
774ifdef NO_SYMLINK_HEAD
775 BASIC_CFLAGS += -DNO_SYMLINK_HEAD
776endif
777ifdef NO_STRCASESTR 745ifdef NO_STRCASESTR
778 COMPAT_CFLAGS += -DNO_STRCASESTR 746 COMPAT_CFLAGS += -DNO_STRCASESTR
779 COMPAT_OBJS += $(OUTPUT)compat/strcasestr.o 747 COMPAT_OBJS += $(OUTPUT)compat/strcasestr.o
@@ -813,9 +781,6 @@ ifdef NO_PREAD
813 COMPAT_CFLAGS += -DNO_PREAD 781 COMPAT_CFLAGS += -DNO_PREAD
814 COMPAT_OBJS += $(OUTPUT)compat/pread.o 782 COMPAT_OBJS += $(OUTPUT)compat/pread.o
815endif 783endif
816ifdef NO_FAST_WORKING_DIRECTORY
817 BASIC_CFLAGS += -DNO_FAST_WORKING_DIRECTORY
818endif
819ifdef NO_TRUSTABLE_FILEMODE 784ifdef NO_TRUSTABLE_FILEMODE
820 BASIC_CFLAGS += -DNO_TRUSTABLE_FILEMODE 785 BASIC_CFLAGS += -DNO_TRUSTABLE_FILEMODE
821endif 786endif
@@ -851,23 +816,6 @@ ifdef NO_DEFLATE_BOUND
851 BASIC_CFLAGS += -DNO_DEFLATE_BOUND 816 BASIC_CFLAGS += -DNO_DEFLATE_BOUND
852endif 817endif
853 818
854ifdef PPC_SHA1
855 SHA1_HEADER = "ppc/sha1.h"
856 LIB_OBJS += $(OUTPUT)ppc/sha1.o ppc/sha1ppc.o
857else
858ifdef ARM_SHA1
859 SHA1_HEADER = "arm/sha1.h"
860 LIB_OBJS += $(OUTPUT)arm/sha1.o $(OUTPUT)arm/sha1_arm.o
861else
862ifdef MOZILLA_SHA1
863 SHA1_HEADER = "mozilla-sha1/sha1.h"
864 LIB_OBJS += $(OUTPUT)mozilla-sha1/sha1.o
865else
866 SHA1_HEADER = <openssl/sha.h>
867 EXTLIBS += $(LIB_4_CRYPTO)
868endif
869endif
870endif
871ifdef NO_PERL_MAKEMAKER 819ifdef NO_PERL_MAKEMAKER
872 export NO_PERL_MAKEMAKER 820 export NO_PERL_MAKEMAKER
873endif 821endif
@@ -930,7 +878,6 @@ endif
930 878
931# Shell quote (do not use $(call) to accommodate ancient setups); 879# Shell quote (do not use $(call) to accommodate ancient setups);
932 880
933SHA1_HEADER_SQ = $(subst ','\'',$(SHA1_HEADER))
934ETC_PERFCONFIG_SQ = $(subst ','\'',$(ETC_PERFCONFIG)) 881ETC_PERFCONFIG_SQ = $(subst ','\'',$(ETC_PERFCONFIG))
935 882
936DESTDIR_SQ = $(subst ','\'',$(DESTDIR)) 883DESTDIR_SQ = $(subst ','\'',$(DESTDIR))
@@ -948,8 +895,7 @@ PERL_PATH_SQ = $(subst ','\'',$(PERL_PATH))
948 895
949LIBS = -Wl,--whole-archive $(PERFLIBS) -Wl,--no-whole-archive $(EXTLIBS) 896LIBS = -Wl,--whole-archive $(PERFLIBS) -Wl,--no-whole-archive $(EXTLIBS)
950 897
951BASIC_CFLAGS += -DSHA1_HEADER='$(SHA1_HEADER_SQ)' \ 898BASIC_CFLAGS += $(COMPAT_CFLAGS)
952 $(COMPAT_CFLAGS)
953LIB_OBJS += $(COMPAT_OBJS) 899LIB_OBJS += $(COMPAT_OBJS)
954 900
955ALL_CFLAGS += $(BASIC_CFLAGS) 901ALL_CFLAGS += $(BASIC_CFLAGS)
@@ -1048,9 +994,6 @@ $(OUTPUT)util/exec_cmd.o: util/exec_cmd.c $(OUTPUT)PERF-CFLAGS
1048 '-DPREFIX="$(prefix_SQ)"' \ 994 '-DPREFIX="$(prefix_SQ)"' \
1049 $< 995 $<
1050 996
1051$(OUTPUT)builtin-init-db.o: builtin-init-db.c $(OUTPUT)PERF-CFLAGS
1052 $(QUIET_CC)$(CC) -o $@ -c $(ALL_CFLAGS) -DDEFAULT_PERF_TEMPLATE_DIR='"$(template_dir_SQ)"' $<
1053
1054$(OUTPUT)util/config.o: util/config.c $(OUTPUT)PERF-CFLAGS 997$(OUTPUT)util/config.o: util/config.c $(OUTPUT)PERF-CFLAGS
1055 $(QUIET_CC)$(CC) -o $@ -c $(ALL_CFLAGS) -DETC_PERFCONFIG='"$(ETC_PERFCONFIG_SQ)"' $< 998 $(QUIET_CC)$(CC) -o $@ -c $(ALL_CFLAGS) -DETC_PERFCONFIG='"$(ETC_PERFCONFIG_SQ)"' $<
1056 999
@@ -1089,7 +1032,6 @@ $(OUTPUT)perf-%$X: %.o $(PERFLIBS)
1089 1032
1090$(LIB_OBJS) $(BUILTIN_OBJS): $(LIB_H) 1033$(LIB_OBJS) $(BUILTIN_OBJS): $(LIB_H)
1091$(patsubst perf-%$X,%.o,$(PROGRAMS)): $(LIB_H) $(wildcard */*.h) 1034$(patsubst perf-%$X,%.o,$(PROGRAMS)): $(LIB_H) $(wildcard */*.h)
1092builtin-revert.o wt-status.o: wt-status.h
1093 1035
1094# we compile into subdirectories. if the target directory is not the source directory, they might not exists. So 1036# we compile into subdirectories. if the target directory is not the source directory, they might not exists. So
1095# we depend the various files onto their directories. 1037# we depend the various files onto their directories.
@@ -1192,8 +1134,6 @@ all:: $(TEST_PROGRAMS)
1192# However, the environment gets quite big, and some programs have problems 1134# However, the environment gets quite big, and some programs have problems
1193# with that. 1135# with that.
1194 1136
1195export NO_SVN_TESTS
1196
1197check: $(OUTPUT)common-cmds.h 1137check: $(OUTPUT)common-cmds.h
1198 if sparse; \ 1138 if sparse; \
1199 then \ 1139 then \