Print this page
6665607 Need a SHA256/SHA384/SHA512 implementation optimized for 64-bit x86
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/lib/libmd/Makefile.com
+++ new/usr/src/lib/libmd/Makefile.com
1 1 #
2 2 # CDDL HEADER START
3 3 #
4 4 # The contents of this file are subject to the terms of the
5 5 # Common Development and Distribution License (the "License").
6 6 # You may not use this file except in compliance with the License.
7 7 #
8 8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 9 # or http://www.opensolaris.org/os/licensing.
10 10 # See the License for the specific language governing permissions
11 11 # and limitations under the License.
12 12 #
13 13 # When distributing Covered Code, include this CDDL HEADER in each
14 14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
↓ open down ↓ |
14 lines elided |
↑ open up ↑ |
15 15 # If applicable, add the following below this CDDL HEADER, with the
16 16 # fields enclosed by brackets "[]" replaced with your own identifying
17 17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 18 #
19 19 # CDDL HEADER END
20 20 #
21 21 #
22 22 # Copyright 2008 Sun Microsystems, Inc. All rights reserved.
23 23 # Use is subject to license terms.
24 24 #
25 -# ident "@(#)Makefile.com 1.4 08/03/02 SMI"
25 +# ident "@(#)Makefile.com 1.5 08/03/20 SMI"
26 26 #
27 27
28 28 # $LIBRARY is set in lower makefiles so we can have platform and
29 29 # processor optimised versions of this library via libmd_psr and libmd_hwcapN
30 30
31 31 #LIBRARY= libmd.a
32 32 VERS= .1
33 33
34 -OBJECTS= md4.o md5.o $(MD5_PSR_OBJECTS) sha1.o $(SHA1_PSR_OBJECTS) sha2.o
34 +OBJECTS= md4.o md5.o $(MD5_PSR_OBJECTS) sha1.o $(SHA1_PSR_OBJECTS) \
35 + sha2.o $(SHA2_PSR_OBJECTS)
35 36
36 37 # Use $(SRC) to include makefiles rather than ../../ because the
37 38 # platform subdirs are one level deeper so it would be ../../../ for them
38 39 include $(SRC)/lib/Makefile.lib
39 40 include $(SRC)/lib/Makefile.rootfs
40 41
41 42 LIBS = $(DYNLIB) $(LINTLIB)
42 43 SRCS = \
43 44 $(COMDIR)/md4/md4.c \
44 45 $(COMDIR)/md5/md5.c \
45 46 $(COMDIR)/sha1/sha1.c \
46 47 $(COMDIR)/sha2/sha2.c
47 48
48 49 COMDIR= $(SRC)/common/crypto
49 50
50 51 $(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC)
51 52 LDLIBS += -lc
52 53
53 54 SRCDIR = ../common
54 55 COMDIR = $(SRC)/common/crypto
55 56
56 57 CFLAGS += $(CCVERBOSE) $(C_BIGPICFLAGS)
57 58 CFLAGS64 += $(C_BIGPICFLAGS)
58 59 CPPFLAGS += -I$(SRCDIR)
59 60
60 61 # The md5 and sha1 code is very careful about data alignment
61 62 # but lint doesn't know that, so just shut lint up.
62 63 LINTFLAGS += -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED
63 64 LINTFLAGS64 += -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED
64 65
65 66
66 67 ROOTLINT= $(LINTSRC:%=$(ROOTLIBDIR)/%)
67 68
68 69 .KEEP_STATE:
69 70
70 71 all: $(LIBS) fnamecheck
71 72
72 73 lint: lintcheck
73 74
74 75 pics/%.o: $(COMDIR)/md4/%.c
75 76 $(COMPILE.c) -I$(COMDIR)/md4 -o $@ $<
76 77 $(POST_PROCESS_O)
77 78
78 79 pics/%.o: $(COMDIR)/md5/%.c
79 80 $(COMPILE.c) -I$(COMDIR)/md5 $(INLINES) -o $@ $<
80 81 $(POST_PROCESS_O)
81 82
82 83 pics/%.o: $(COMDIR)/sha1/%.c
83 84 $(COMPILE.c) -I$(COMDIR)/sha1 -o $@ $<
84 85 $(POST_PROCESS_O)
85 86
86 87 pics/%.o: $(COMDIR)/sha1/sparc/$(PLATFORM)/sha1_asm.s
87 88 $(COMPILE.s) -P -DPIC -D_ASM -o $@ $<
88 89 $(POST_PROCESS_O)
89 90
90 91 pics/%.o: $(COMDIR)/sha2/%.c
91 92 $(COMPILE.c) -I$(COMDIR)/sha2 -o $@ $<
92 93 $(POST_PROCESS_O)
93 94
94 95 #
95 96 # Used when building links in /platform/$(PLATFORM)/lib for libmd_psr.so.1
96 97 #
97 98
98 99 LIBMD_PSR_DIRS = $(LINKED_PLATFORMS:%=$(ROOT_PLAT_DIR)/%/lib)
99 100 LIBMD_PSR_LINKS = $(LINKED_PLATFORMS:%=$(ROOT_PLAT_DIR)/%/lib/$(MODULE))
100 101
101 102 LIBMD_PSR64_DIRS = $(LINKED_PLATFORMS:%=$(ROOT_PLAT_DIR)/%/lib/$(MACH64))
102 103 LIBMD_PSR64_LINKS = $(LINKED_PLATFORMS:%=$(ROOT_PLAT_DIR)/%/lib/$(MACH64)/$(MODULE))
103 104
104 105 INS.slink6 = $(RM) -r $@; $(SYMLINK) ../../$(PLATFORM)/lib/$(MODULE) $@ $(CHOWNLINK) $(CHGRPLINK)
105 106
106 107 INS.slink64 = $(RM) -r $@; $(SYMLINK) ../../../$(PLATFORM)/lib/$(MACH64)/$(MODULE) $@ $(CHOWNLINK) $(CHGRPLINK)
107 108
108 109 $(LIBMD_PSR_DIRS):
109 110 -$(INS.dir.root.bin)
110 111
111 112 $(LIBMD_PSR_LINKS): $(LIBMD_PSR_DIRS)
112 113 -$(INS.slink6)
113 114
114 115 $(LIBMD_PSR64_DIRS):
115 116 -$(INS.dir.root.bin)
116 117
117 118 $(LIBMD_PSR64_LINKS): $(LIBMD_PSR64_DIRS)
118 119 -$(INS.slink64)
119 120
120 121 include $(SRC)/lib/Makefile.targ
↓ open down ↓ |
76 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX