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