2121# Define FREAD_READS_DIRECTORIES if your are on a system which succeeds
2222# when attempting to read from an fopen'ed directory.
2323#
24- # Define NO_OPENSSL environment variable if you do not have OpenSSL.
25- # This also implies MOZILLA_SHA1.
26- #
2724# Define CURLDIR=/foo/bar if your curl header and library files are in
2825# /foo/bar/include and /foo/bar/lib directories.
2926#
5653#
5754# Define NO_SYS_SELECT_H if you don't have sys/select.h.
5855#
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- #
6656# Define NO_FINK if you are building on Darwin/Mac OS X, have Fink
6757# installed in /sw, but don't want PERF to link against any libraries
6858# installed there. If defined you may specify your own (or Fink's)
7565# specify your own (or DarwinPort's) include directories and
7666# library directories by defining CFLAGS and LDFLAGS appropriately.
7767#
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- #
9168# Define NEEDS_LIBICONV if linking with libc is not enough (Darwin).
9269#
9370# Define NEEDS_SOCKET if linking with libc is not enough (SunOS,
10077# Define NO_PREAD if you have a problem with pread() system call (e.g.
10178# cygwin.dll before v1.5.22).
10279#
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- #
10680# Define NO_TRUSTABLE_FILEMODE if your filesystem may claim to support
10781# the executable mode bit, but doesn't really do so.
10882#
@@ -134,9 +108,6 @@ endif
134108# Define NO_NSEC if your "struct stat" does not have "st_ctim.tv_nsec"
135109# available. This automatically turns USE_NSEC off.
136110#
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- #
140111# Define NO_ST_BLOCKS_IN_STRUCT_STAT if your platform does not have st_blocks
141112# field that counts the on-disk footprint in 512-byte blocks.
142113#
@@ -771,9 +742,6 @@ ifdef FREAD_READS_DIRECTORIES
771742 COMPAT_CFLAGS += -DFREAD_READS_DIRECTORIES
772743 COMPAT_OBJS += $(OUTPUT)compat/fopen.o
773744endif
774- ifdef NO_SYMLINK_HEAD
775- BASIC_CFLAGS += -DNO_SYMLINK_HEAD
776- endif
777745ifdef NO_STRCASESTR
778746 COMPAT_CFLAGS += -DNO_STRCASESTR
779747 COMPAT_OBJS += $(OUTPUT)compat/strcasestr.o
@@ -813,9 +781,6 @@ ifdef NO_PREAD
813781 COMPAT_CFLAGS += -DNO_PREAD
814782 COMPAT_OBJS += $(OUTPUT)compat/pread.o
815783endif
816- ifdef NO_FAST_WORKING_DIRECTORY
817- BASIC_CFLAGS += -DNO_FAST_WORKING_DIRECTORY
818- endif
819784ifdef NO_TRUSTABLE_FILEMODE
820785 BASIC_CFLAGS += -DNO_TRUSTABLE_FILEMODE
821786endif
@@ -851,23 +816,6 @@ ifdef NO_DEFLATE_BOUND
851816 BASIC_CFLAGS += -DNO_DEFLATE_BOUND
852817endif
853818
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
871819ifdef NO_PERL_MAKEMAKER
872820 export NO_PERL_MAKEMAKER
873821endif
@@ -930,7 +878,6 @@ endif
930878
931879# Shell quote (do not use $(call) to accommodate ancient setups);
932880
933- SHA1_HEADER_SQ = $(subst ','\'',$(SHA1_HEADER ) )
934881ETC_PERFCONFIG_SQ = $(subst ','\'',$(ETC_PERFCONFIG ) )
935882
936883DESTDIR_SQ = $(subst ','\'',$(DESTDIR ) )
@@ -948,8 +895,7 @@ PERL_PATH_SQ = $(subst ','\'',$(PERL_PATH))
948895
949896LIBS = -Wl,--whole-archive $(PERFLIBS ) -Wl,--no-whole-archive $(EXTLIBS )
950897
951- BASIC_CFLAGS += -DSHA1_HEADER='$(SHA1_HEADER_SQ ) ' \
952- $(COMPAT_CFLAGS )
898+ BASIC_CFLAGS += $(COMPAT_CFLAGS )
953899LIB_OBJS += $(COMPAT_OBJS )
954900
955901ALL_CFLAGS += $(BASIC_CFLAGS )
@@ -1048,9 +994,6 @@ $(OUTPUT)util/exec_cmd.o: util/exec_cmd.c $(OUTPUT)PERF-CFLAGS
1048994 ' -DPREFIX="$(prefix_SQ)"' \
1049995 $<
1050996
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-
1054997$(OUTPUT ) util/config.o : util/config.c $(OUTPUT ) PERF-CFLAGS
1055998 $(QUIET_CC )$(CC ) -o $@ -c $(ALL_CFLAGS ) -DETC_PERFCONFIG=' "$(ETC_PERFCONFIG_SQ)"' $<
1056999
@@ -1089,7 +1032,6 @@ $(OUTPUT)perf-%$X: %.o $(PERFLIBS)
10891032
10901033$(LIB_OBJS ) $(BUILTIN_OBJS ) : $(LIB_H )
10911034$(patsubst perf-% $X,% .o,$(PROGRAMS ) ) : $(LIB_H ) $(wildcard * /* .h)
1092- builtin-revert.o wt-status.o : wt-status.h
10931035
10941036# we compile into subdirectories. if the target directory is not the source directory, they might not exists. So
10951037# we depend the various files onto their directories.
@@ -1192,8 +1134,6 @@ all:: $(TEST_PROGRAMS)
11921134# However, the environment gets quite big, and some programs have problems
11931135# with that.
11941136
1195- export NO_SVN_TESTS
1196-
11971137check : $(OUTPUT ) common-cmds.h
11981138 if sparse; \
11991139 then \
0 commit comments