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_kernel/Makefile.com
+++ new/usr/src/lib/pkcs11/pkcs11_kernel/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 2007 Sun Microsystems, Inc. All rights reserved.
23 23 # Use is subject to license terms.
24 24 #
25 25 # Copyright (c) 2018, Joyent, Inc.
26 26
27 27 LIBRARY= pkcs11_kernel.a
28 28 VERS= .1
29 29
30 30 CORE_OBJECTS= \
31 31 kernelGeneral.o \
32 32 kernelSlottable.o \
33 33 kernelSlotToken.o \
34 34 kernelObject.o \
35 35 kernelDigest.o \
36 36 kernelSign.o \
37 37 kernelVerify.o \
38 38 kernelDualCrypt.o \
39 39 kernelKeys.o \
40 40 kernelRand.o \
41 41 kernelSession.o \
42 42 kernelSessionUtil.o \
43 43 kernelUtil.o \
44 44 kernelEncrypt.o \
45 45 kernelDecrypt.o \
46 46 kernelObjectUtil.o \
47 47 kernelAttributeUtil.o \
48 48 kernelEmulate.o
49 49
50 50 OTHER_OBJECTS = kernelSoftCommon.o
51 51 ST_OBJECTS = softDigestUtil.o softMAC.o
52 52
53 53 OBJECTS= \
54 54 $(CORE_OBJECTS) \
55 55 $(OTHER_OBJECTS) \
56 56 $(ST_OBJECTS)
57 57
58 58 AESDIR= $(SRC)/common/crypto/aes
59 59 ARCFOURDIR= $(SRC)/common/crypto/arcfour
60 60 BLOWFISHDIR= $(SRC)/common/crypto/blowfish
61 61 DESDIR= $(SRC)/common/crypto/des
62 62 ECCDIR= $(SRC)/common/crypto/ecc
63 63 CRYPTDIR= $(SRC)/common/crypto
64 64 ST_DIR= $(SRC)/lib/pkcs11/pkcs11_softtoken/common
65 65
66 66 lint \
67 67 pics/kernelAttributeUtil.o := \
68 68 CPPFLAGS += -I$(AESDIR) -I$(BLOWFISHDIR) -I$(ARCFOURDIR) -I$(DESDIR) \
69 69 -I$(ECCDIR) -I$(CRYPTDIR)
70 70 pics/kernelKeys.o := \
71 71 CPPFLAGS += -I$(ECCDIR)
72 72 pics/kernelSoftCommon.o := \
73 73 CPPFLAGS = -I$(ST_DIR) $(CPPFLAGS.master)
74 74
75 75 include $(SRC)/lib/Makefile.lib
76 76
77 77 # set signing mode
78 78 POST_PROCESS_SO += ; $(ELFSIGN_CRYPTO)
↓ open down ↓ |
78 lines elided |
↑ open up ↑ |
79 79
80 80 SRCDIR= ../common
81 81 CORESRCS = \
82 82 $(CORE_OBJECTS:%.o=$(SRCDIR)/%.c)
83 83
84 84 LIBS = $(DYNLIB)
85 85 LDLIBS += -lc -lcryptoutil -lmd
86 86
87 87 CFLAGS += $(CCVERBOSE)
88 88
89 -CERRWARN += -_gcc=-Wno-uninitialized
89 +CERRWARN += $(CNOWARN_UNINIT)
90 90 CERRWARN += -_gcc=-Wno-unused-label
91 91
92 92 # not linted
93 93 SMATCH=off
94 94
95 95 ROOTLIBDIR= $(ROOT)/usr/lib/security
96 96 ROOTLIBDIR64= $(ROOT)/usr/lib/security/$(MACH64)
97 97
98 98 .KEEP_STATE:
99 99
100 100 all: $(LIBS)
101 101
102 102 # we don't need to lint ST_OBJECTS since they are linted elsewhere.
103 103 lintcheck := SRCS = $(CORESRCS)
104 104 lintother := OSRCS = ../common/kernelSoftCommon.c
105 105 lintother := CPPFLAGS = -I$(ST_DIR) $(CPPFLAGS.master)
106 106
107 107 lintother: $$(OSRCS)
108 108 $(LINT.c) $(LINTCHECKFLAGS) $(OSRCS) $(LDLIBS)
109 109
110 110 lint: lintcheck lintother
111 111
112 112 pics/%.o: $(ST_DIR)/%.c
113 113 $(COMPILE.c) -o $@ $< -I$(ST_DIR)
114 114 $(POST_PROCESS_O)
115 115
116 116 include $(SRC)/lib/Makefile.targ
↓ open down ↓ |
17 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX