Print this page
6662791 Need a SHA1 implementation optimized for 64-bit x86

@@ -20,28 +20,36 @@
 #
 #
 # Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
-# ident "@(#)Makefile   1.2     08/01/02 SMI"
+# ident "@(#)Makefile   1.3     08/03/02 SMI"
 #
 
 LIBRARY= libmd.a
 
 MD5_PSR_OBJECTS = md5_amd64.o
+SHA1_PSR_OBJECTS = sha1-x86_64.o
 
 include ../Makefile.com
 include $(SRC)/lib/Makefile.lib.64
 
-CLEANFILES += md5_amd64.s
+CLEANFILES += md5_amd64.s sha1-x86_64.s
 
 # This prevents <sys/asm_linkage.h> from including C source:
 AS_CPPFLAGS += -D_ASM
 
 install: all $(ROOTLIBS64) $(ROOTLINKS64) $(ROOTLINT64)
 
+pics/md5_amd64.o: md5_amd64.s
+        $(COMPILE.s) -o $@ ${@F:.o=.s}
+        $(POST_PROCESS_O)
+
+pics/sha1-x86_64.o: sha1-x86_64.s
+        $(COMPILE.s) -o $@ ${@F:.o=.s}
+        $(POST_PROCESS_O)
+
 md5_amd64.s: $(COMDIR)/md5/amd64/md5_amd64.pl
         $(PERL) $? $@
 
-pics/md5_amd64.o: md5_amd64.s
-        $(COMPILE.s) -o $@ md5_amd64.s
-        $(POST_PROCESS_O)
+sha1-x86_64.s: $(COMDIR)/sha1/amd64/sha1-x86_64.pl
+        $(PERL) $? $@