Print this page
11528 Makefile.noget can get gone
11529 Use -Wno-maybe-initialized
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/lib/pkcs11/pkcs11_softtoken/Makefile.com
+++ new/usr/src/lib/pkcs11/pkcs11_softtoken/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.
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 (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
23 23 #
24 24 # Copyright 2010 Nexenta Systems, Inc. All rights reserved.
25 25 # Copyright 2018, Joyent, Inc.
26 26 #
27 27 # Copyright (c) 2018, Joyent, Inc.
28 28
29 29 LIBRARY = pkcs11_softtoken.a
30 30 VERS= .1
31 31
32 32 LCL_OBJECTS = \
33 33 softGeneral.o \
34 34 softSlotToken.o \
35 35 softSession.o \
36 36 softObject.o \
37 37 softDigest.o \
38 38 softSign.o \
39 39 softVerify.o \
40 40 softDualCrypt.o \
41 41 softKeys.o \
42 42 softRand.o \
43 43 softSessionUtil.o \
44 44 softDigestUtil.o \
45 45 softAttributeUtil.o \
46 46 softObjectUtil.o \
47 47 softDESCrypt.o \
48 48 softEncrypt.o \
49 49 softDecrypt.o \
50 50 softEncryptUtil.o \
51 51 softDecryptUtil.o \
52 52 softSignUtil.o \
53 53 softVerifyUtil.o \
54 54 softMAC.o \
55 55 softRSA.o \
56 56 softKeysUtil.o \
57 57 softARCFourCrypt.o \
58 58 softDSA.o \
59 59 softDH.o \
60 60 softAESCrypt.o \
61 61 softKeystore.o \
62 62 softKeystoreUtil.o \
63 63 softSSL.o \
64 64 softASN1.o \
65 65 softBlowfishCrypt.o \
66 66 softEC.o
67 67
68 68 ASFLAGS = $(AS_PICFLAGS) -P -D__STDC__ -D_ASM $(CPPFLAGS)
69 69
70 70 ECC_COBJECTS = \
71 71 ec.o ec2_163.o ec2_mont.o ecdecode.o ecl_mult.o ecp_384.o \
72 72 ecp_jac.o ec2_193.o ecl.o ecp_192.o ecp_521.o \
73 73 ecp_jm.o ec2_233.o ecl_curve.o ecp_224.o ecp_aff.o ecp_mont.o \
74 74 ec2_aff.o ec_naf.o ecl_gf.o ecp_256.o oid.o secitem.o \
75 75 ec2_test.o ecp_test.o
76 76
77 77 MPI_COBJECTS = mp_gf2m.o mpi.o mplogic.o mpmontg.o mpprime.o
78 78 RNG_COBJECTS = fips_random.o
79 79
80 80 ECC_OBJECTS = $(ECC_COBJECTS) $(ECC_PSR_OBJECTS)
81 81 MPI_OBJECTS = $(MPI_COBJECTS) $(MPI_PSR_OBJECTS)
82 82 RNG_OBJECTS = $(RNG_COBJECTS)
83 83 BER_OBJECTS = bprint.o decode.o encode.o io.o
84 84
85 85 OBJECTS = \
86 86 $(LCL_OBJECTS) \
87 87 $(MPI_OBJECTS) \
88 88 $(RNG_OBJECTS) \
89 89 $(BIGNUM_OBJECTS) \
90 90 $(BER_OBJECTS) \
91 91 $(ECC_OBJECTS)
92 92
93 93 AESDIR= $(SRC)/common/crypto/aes
94 94 BLOWFISHDIR= $(SRC)/common/crypto/blowfish
95 95 ARCFOURDIR= $(SRC)/common/crypto/arcfour
96 96 DESDIR= $(SRC)/common/crypto/des
97 97 DHDIR= $(SRC)/common/crypto/dh
98 98 DSADIR= $(SRC)/common/crypto/dsa
99 99 ECCDIR= $(SRC)/common/crypto/ecc
100 100 MPIDIR= $(SRC)/common/mpi
101 101 RSADIR= $(SRC)/common/crypto/rsa
102 102 RNGDIR= $(SRC)/common/crypto/rng
103 103 SHA1DIR= $(SRC)/common/crypto/sha1
104 104 SHA2DIR= $(SRC)/common/crypto/sha2
105 105 BIGNUMDIR= $(SRC)/common/bignum
106 106 PADDIR= $(SRC)/common/crypto/padding
107 107 BERDIR= ../../../libldap5/sources/ldap/ber
108 108
109 109 include $(SRC)/lib/Makefile.lib
110 110
111 111 # set signing mode
112 112 POST_PROCESS_SO += ; $(ELFSIGN_CRYPTO)
113 113
114 114 SRCDIR= ../common
115 115
116 116 SRCS = \
117 117 $(LCL_OBJECTS:%.o=$(SRCDIR)/%.c) \
118 118 $(MPI_COBJECTS:%.o=$(MPIDIR)/%.c) \
119 119 $(ECC_COBJECTS:%.o=$(ECCDIR)/%.c) \
120 120 $(RNG_COBJECTS:%.o=$(RNGDIR)/%.c)
121 121
122 122 # libelfsign needs a static pkcs11_softtoken
↓ open down ↓ |
122 lines elided |
↑ open up ↑ |
123 123 LIBS = $(DYNLIB)
124 124 LDLIBS += -lc -lmd -lcryptoutil -lsoftcrypto -lgen
125 125
126 126 CSTD = $(CSTD_GNU99)
127 127 C99LMODE = -Xc99=%all
128 128
129 129 CFLAGS += $(CCVERBOSE)
130 130
131 131 CERRWARN += -_gcc=-Wno-unused-label
132 132 CERRWARN += -_gcc=-Wno-parentheses
133 -CERRWARN += -_gcc=-Wno-uninitialized
133 +CERRWARN += $(CNOWARN_UNINIT)
134 134 CERRWARN += -_gcc=-Wno-type-limits
135 135 CERRWARN += -_gcc=-Wno-unused-variable
136 136 CERRWARN += -_gcc=-Wno-empty-body
137 137
138 138 # not linted
139 139 SMATCH=off
140 140
141 141 CPPFLAGS += -I$(AESDIR) -I$(BLOWFISHDIR) -I$(ARCFOURDIR) -I$(DESDIR) \
142 142 -I$(DHDIR) -I$(DSADIR) -I$(ECCDIR) -I$(SRC)/common/crypto \
143 143 -I$(MPIDIR) -I$(RSADIR) -I$(RNGDIR) \
144 144 -I$(SHA1DIR) -I$(SHA2DIR) -I$(SRCDIR) \
145 145 -I$(BIGNUMDIR) -I$(PADDIR) -D_POSIX_PTHREAD_SEMANTICS \
146 146 -DMP_API_COMPATIBLE -DNSS_ECC_MORE_THAN_SUITE_B
147 147
148 148 LINTFLAGS64 += -errchk=longptr64
149 149
150 150 ROOTLIBDIR= $(ROOT)/usr/lib/security
151 151 ROOTLIBDIR64= $(ROOT)/usr/lib/security/$(MACH64)
152 152
153 153 LINTSRC = \
154 154 $(LCL_OBJECTS:%.o=$(SRCDIR)/%.c) \
155 155 $(RNG_COBJECTS:%.o=$(RNGDIR)/%.c)
156 156
157 157 .KEEP_STATE:
158 158
159 159 all: $(LIBS)
160 160
161 161 lint: $$(LINTSRC)
162 162 $(LINT.c) $(LINTCHECKFLAGS) $(LINTSRC) $(LDLIBS)
163 163
164 164 pics/%.o: $(BERDIR)/%.c
165 165 $(COMPILE.c) -o $@ $< -D_SOLARIS_SDK -I$(BERDIR) \
166 166 -I../../../libldap5/include/ldap
167 167 $(POST_PROCESS_O)
168 168
169 169 pics/%.o: $(ECCDIR)/%.c
170 170 $(COMPILE.c) -o $@ $<
171 171 $(POST_PROCESS_O)
172 172
173 173 pics/%.o: $(MPIDIR)/%.c
174 174 $(COMPILE.c) -o $@ $<
175 175 $(POST_PROCESS_O)
176 176
177 177 pics/%.o: $(RNGDIR)/%.c
178 178 $(COMPILE.c) -o $@ $<
179 179 $(POST_PROCESS_O)
180 180
181 181 include $(SRC)/lib/Makefile.targ
↓ open down ↓ |
38 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX