diff options
author | Michael Witten <mfwitten@gmail.com> | 2011-02-02 14:01:41 -0500 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2011-02-18 04:40:54 -0500 |
commit | 006cdc32618e09ffe228a7a86af044f3cc0dd714 (patch) | |
tree | 623364c68124d61e0b70c906034e4d00c70b1087 /tools | |
parent | 02ca752e4181e219e243cd61a60dd1da47251f11 (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')
-rw-r--r-- | tools/perf/Makefile | 62 |
1 files changed, 1 insertions, 61 deletions
diff --git a/tools/perf/Makefile b/tools/perf/Makefile index 7c75f1d45f59..544367cf6d58 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 |
773 | endif | 744 | endif |
774 | ifdef NO_SYMLINK_HEAD | ||
775 | BASIC_CFLAGS += -DNO_SYMLINK_HEAD | ||
776 | endif | ||
777 | ifdef NO_STRCASESTR | 745 | ifdef 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 |
815 | endif | 783 | endif |
816 | ifdef NO_FAST_WORKING_DIRECTORY | ||
817 | BASIC_CFLAGS += -DNO_FAST_WORKING_DIRECTORY | ||
818 | endif | ||
819 | ifdef NO_TRUSTABLE_FILEMODE | 784 | ifdef NO_TRUSTABLE_FILEMODE |
820 | BASIC_CFLAGS += -DNO_TRUSTABLE_FILEMODE | 785 | BASIC_CFLAGS += -DNO_TRUSTABLE_FILEMODE |
821 | endif | 786 | endif |
@@ -851,23 +816,6 @@ ifdef NO_DEFLATE_BOUND | |||
851 | BASIC_CFLAGS += -DNO_DEFLATE_BOUND | 816 | BASIC_CFLAGS += -DNO_DEFLATE_BOUND |
852 | endif | 817 | endif |
853 | 818 | ||
854 | ifdef PPC_SHA1 | ||
855 | SHA1_HEADER = "ppc/sha1.h" | ||
856 | LIB_OBJS += $(OUTPUT)ppc/sha1.o ppc/sha1ppc.o | ||
857 | else | ||
858 | ifdef ARM_SHA1 | ||
859 | SHA1_HEADER = "arm/sha1.h" | ||
860 | LIB_OBJS += $(OUTPUT)arm/sha1.o $(OUTPUT)arm/sha1_arm.o | ||
861 | else | ||
862 | ifdef MOZILLA_SHA1 | ||
863 | SHA1_HEADER = "mozilla-sha1/sha1.h" | ||
864 | LIB_OBJS += $(OUTPUT)mozilla-sha1/sha1.o | ||
865 | else | ||
866 | SHA1_HEADER = <openssl/sha.h> | ||
867 | EXTLIBS += $(LIB_4_CRYPTO) | ||
868 | endif | ||
869 | endif | ||
870 | endif | ||
871 | ifdef NO_PERL_MAKEMAKER | 819 | ifdef NO_PERL_MAKEMAKER |
872 | export NO_PERL_MAKEMAKER | 820 | export NO_PERL_MAKEMAKER |
873 | endif | 821 | endif |
@@ -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 | ||
933 | SHA1_HEADER_SQ = $(subst ','\'',$(SHA1_HEADER)) | ||
934 | ETC_PERFCONFIG_SQ = $(subst ','\'',$(ETC_PERFCONFIG)) | 881 | ETC_PERFCONFIG_SQ = $(subst ','\'',$(ETC_PERFCONFIG)) |
935 | 882 | ||
936 | DESTDIR_SQ = $(subst ','\'',$(DESTDIR)) | 883 | DESTDIR_SQ = $(subst ','\'',$(DESTDIR)) |
@@ -948,8 +895,7 @@ PERL_PATH_SQ = $(subst ','\'',$(PERL_PATH)) | |||
948 | 895 | ||
949 | LIBS = -Wl,--whole-archive $(PERFLIBS) -Wl,--no-whole-archive $(EXTLIBS) | 896 | LIBS = -Wl,--whole-archive $(PERFLIBS) -Wl,--no-whole-archive $(EXTLIBS) |
950 | 897 | ||
951 | BASIC_CFLAGS += -DSHA1_HEADER='$(SHA1_HEADER_SQ)' \ | 898 | BASIC_CFLAGS += $(COMPAT_CFLAGS) |
952 | $(COMPAT_CFLAGS) | ||
953 | LIB_OBJS += $(COMPAT_OBJS) | 899 | LIB_OBJS += $(COMPAT_OBJS) |
954 | 900 | ||
955 | ALL_CFLAGS += $(BASIC_CFLAGS) | 901 | ALL_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) |
1092 | builtin-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 | ||
1195 | export NO_SVN_TESTS | ||
1196 | |||
1197 | check: $(OUTPUT)common-cmds.h | 1137 | check: $(OUTPUT)common-cmds.h |
1198 | if sparse; \ | 1138 | if sparse; \ |
1199 | then \ | 1139 | then \ |