@@ -155,9 +155,6 @@ include shared.mak
155155# Define BLK_SHA1 environment variable to make use of the bundled
156156# optimized C SHA1 routine.
157157#
158- # Define PPC_SHA1 environment variable when running make to make use of
159- # a bundled SHA1 routine optimized for PowerPC.
160- #
161158# Define DC_SHA1 to unconditionally enable the collision-detecting sha1
162159# algorithm. This is slower, but may detect attempted collision attacks.
163160# Takes priority over other *_SHA1 knobs.
@@ -1803,6 +1800,10 @@ ifdef APPLE_COMMON_CRYPTO
18031800 SHA1_MAX_BLOCK_SIZE = 1024L*1024L*1024L
18041801endif
18051802
1803+ ifdef PPC_SHA1
1804+ $(error the PPC_SHA1 flag has been removed along with the PowerPC-specific SHA-1 implementation.)
1805+ endif
1806+
18061807ifdef OPENSSL_SHA1
18071808 EXTLIBS += $(LIB_4_CRYPTO)
18081809 BASIC_CFLAGS += -DSHA1_OPENSSL
@@ -1811,10 +1812,6 @@ ifdef BLK_SHA1
18111812 LIB_OBJS += block-sha1/sha1.o
18121813 BASIC_CFLAGS += -DSHA1_BLK
18131814else
1814- ifdef PPC_SHA1
1815- LIB_OBJS += ppc/sha1.o ppc/sha1ppc.o
1816- BASIC_CFLAGS += -DSHA1_PPC
1817- else
18181815ifdef APPLE_COMMON_CRYPTO
18191816 COMPAT_CFLAGS += -DCOMMON_DIGEST_FOR_OPENSSL
18201817 BASIC_CFLAGS += -DSHA1_APPLE
@@ -1848,7 +1845,6 @@ endif
18481845endif
18491846endif
18501847endif
1851- endif
18521848
18531849ifdef OPENSSL_SHA256
18541850 EXTLIBS += $(LIB_4_CRYPTO)
@@ -2595,13 +2591,7 @@ missing_compdb_dir =
25952591compdb_args =
25962592endif
25972593
2598- ASM_SRC := $(wildcard $(OBJECTS:o=S ) )
2599- ASM_OBJ := $(ASM_SRC:S=o )
2600- C_OBJ := $(filter-out $(ASM_OBJ ) ,$(OBJECTS ) )
2601-
2602- $(C_OBJ ) : % .o: % .c GIT-CFLAGS $(missing_dep_dirs ) $(missing_compdb_dir )
2603- $(QUIET_CC )$(CC ) -o $* .o -c $(dep_args ) $(compdb_args ) $(ALL_CFLAGS ) $(EXTRA_CPPFLAGS ) $<
2604- $(ASM_OBJ ) : % .o: % .S GIT-CFLAGS $(missing_dep_dirs ) $(missing_compdb_dir )
2594+ $(OBJECTS ) : % .o: % .c GIT-CFLAGS $(missing_dep_dirs ) $(missing_compdb_dir )
26052595 $(QUIET_CC )$(CC ) -o $* .o -c $(dep_args ) $(compdb_args ) $(ALL_CFLAGS ) $(EXTRA_CPPFLAGS ) $<
26062596
26072597% .s : % .c GIT-CFLAGS FORCE
@@ -3093,7 +3083,7 @@ t/helper/test-%$X: t/helper/test-%.o GIT-LDFLAGS $(GITLIBS) $(REFTABLE_TEST_LIB)
30933083check-sha1 :: t/helper/test-tool$X
30943084 t/helper/test-sha1.sh
30953085
3096- SP_OBJ = $(patsubst % .o,% .sp,$(C_OBJ ) )
3086+ SP_OBJ = $(patsubst % .o,% .sp,$(OBJECTS ) )
30973087
30983088$(SP_OBJ ) : % .sp: % .c % .o
30993089 $(QUIET_SP ) cgcc -no-compile $(ALL_CFLAGS ) $(EXTRA_CPPFLAGS ) \
0 commit comments