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