Print this page
10079 smatch Makefile changes for usr/src/lib
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/lib/pkcs11/pkcs11_tpm/Makefile.com
+++ new/usr/src/lib/pkcs11/pkcs11_tpm/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
↓ open down ↓ |
15 lines elided |
↑ open up ↑ |
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 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
22 22 # Use is subject to license terms.
23 23 #
24 24 # Copyright 2018 Jason King
25 25 #
26 +# Copyright (c) 2018, Joyent, Inc.
27 +
26 28 LIBRARY = pkcs11_tpm.a
27 29 VERS = .1
28 30
29 31 RSA_DIR = $(SRC)/common/crypto/rsa
30 32 RSA_FLAGS = -I$(RSA_DIR)
31 33
32 34 BIGNUM_DIR = $(SRC)/common/bignum
33 35 BIGNUM_FLAGS = -I$(BIGNUM_DIR)
34 36
35 37 PADDING_DIR = $(SRC)/common/crypto/padding
36 38 PADDING_FLAGS = -I$(PADDING_DIR)
37 39
38 40 SOFTCRYPTOFLAGS = $(RSA_FLAGS) $(PADDING_FLAGS) $(BIGNUM_FLAGS)
39 41
40 42 OBJECTS= api_interface.o \
41 43 apiutil.o \
42 44 asn1.o \
43 45 cert.o \
44 46 data_obj.o \
45 47 decr_mgr.o \
46 48 dig_mgr.o \
47 49 encr_mgr.o \
48 50 globals.o \
49 51 hwf_obj.o \
50 52 key.o \
51 53 key_mgr.o \
52 54 loadsave.o \
53 55 log.o \
54 56 mech_md5.o \
55 57 mech_rsa.o \
56 58 mech_sha.o \
57 59 new_host.o \
58 60 obj_mgr.o \
59 61 object.o \
60 62 sess_mgr.o \
61 63 sign_mgr.o \
62 64 template.o \
63 65 tpm_specific.o \
64 66 utility.o \
65 67 verify_mgr.o
66 68
67 69
68 70 include $(SRC)/lib/Makefile.lib
69 71
70 72 SRCDIR= ../common
71 73
72 74 SRCS= $(OBJECTS:%.o=$(SRCDIR)/%.c)
73 75
74 76 # set signing mode
75 77 POST_PROCESS_SO += ; $(ELFSIGN_CRYPTO)
76 78
77 79 ROOTLIBDIR=$(ROOT)/usr/lib/security
78 80 ROOTLIBDIR64=$(ROOT)/usr/lib/security/$(MACH64)
79 81
80 82 LIBS=$(DYNLIB) $(DYNLIB64)
81 83
82 84 TSSROOT=$(ADJUNCT_PROTO)
83 85 TSPILIBDIR=$(TSSROOT)/usr/lib
84 86 TSPIINCDIR=$(TSSROOT)/usr/include
85 87 TSSLIB=-L$(TSPILIBDIR)
86 88 TSSLIB64=-L$(TSPILIBDIR)/$(MACH64)
87 89 TSSINC=-I$(TSPIINCDIR)
↓ open down ↓ |
52 lines elided |
↑ open up ↑ |
88 90
89 91 LDLIBS += $(TSSLIB) -L$(ADJUNCT_PROTO)/lib -lc -luuid -lmd -ltspi -lsoftcrypto
90 92 CPPFLAGS += -xCC -D_POSIX_PTHREAD_SEMANTICS $(TSSINC) $(SOFTCRYPTOFLAGS)
91 93 CPPFLAGS64 += $(CPPFLAGS)
92 94 CSTD= $(CSTD_GNU99)
93 95
94 96 CERRWARN += -_gcc=-Wno-parentheses
95 97 CERRWARN += -_gcc=-Wno-unused-label
96 98 CERRWARN += -_gcc=-Wno-uninitialized
97 99
100 +# not linted
101 +SMATCH=off
102 +
98 103 LINTSRC= $(OBJECTS:%.o=$(SRCDIR)/%.c)
99 104
100 105 $(LINTLIB):= SRCS = $(SRCDIR)/$(LINTSRC)
101 106 LINTSRC= $(SRCS)
102 107
103 108 CLOBBERFILES += C.ln
104 109
105 110 .KEEP_STATE:
106 111
107 112 all: $(LIBS)
108 -
113 +
109 114 lint: $$(LINTSRC)
110 115 $(LINT.c) $(LINTCHECKFLAGS) $(LINTSRC) $(LDLIBS)
111 116
112 117 pics/%.o: $(SRCDIR)/%.c
113 118 $(COMPILE.c) -o $@ $<
114 119 $(POST_PROCESS_O)
115 120
116 121 include $(SRC)/lib/Makefile.targ
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX