Print this page
10079 smatch Makefile changes for usr/src/lib
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/lib/libgss/Makefile.com
+++ new/usr/src/lib/libgss/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
↓ open down ↓ |
13 lines elided |
↑ open up ↑ |
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) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
23 23 #
24 +# Copyright (c) 2018, Joyent, Inc.
24 25
25 26 LIBRARY = libgss.a
26 27 VERS = .1
27 28
28 29 GSSOBJECTS = g_acquire_cred.o \
29 30 g_acquire_cred_with_pw.o \
30 31 g_store_cred.o \
31 32 g_rel_cred.o \
32 33 g_init_sec_context.o \
33 34 g_accept_sec_context.o \
34 35 g_process_context.o \
35 36 g_delete_sec_context.o \
36 37 g_imp_sec_context.o \
37 38 g_exp_sec_context.o \
38 39 g_context_time.o \
39 40 g_sign.o \
40 41 g_verify.o \
41 42 g_seal.o \
42 43 g_unseal.o \
43 44 g_dsp_status.o \
44 45 g_compare_name.o \
45 46 g_dsp_name.o \
46 47 g_imp_name.o \
47 48 g_rel_name.o \
48 49 g_rel_buffer.o \
49 50 g_rel_oid_set.o \
50 51 g_oid_ops.o \
51 52 g_inquire_cred.o \
52 53 g_inquire_context.o \
53 54 g_inquire_names.o \
54 55 g_initialize.o \
55 56 g_glue.o \
56 57 gssd_pname_to_uid.o \
57 58 oid_ops.o \
58 59 g_canon_name.o \
59 60 g_dup_name.o \
60 61 g_export_name.o \
61 62 g_utils.o \
62 63 g_userok.o \
63 64 g_buffer_set.o \
64 65 g_inq_context_oid.o \
65 66
66 67
67 68 # defines the duplicate sources we share with gsscred
68 69 GSSCRED_DIR = $(SRC)/cmd/gss/gsscred
69 70 GSSCREDOBJ = gsscred_utils.o gsscred_file.o
70 71 # defines the duplicate sources we share with krb5 mech
71 72 KRB5DIR= $(SRC)/lib/gss_mechs/mech_krb5/mech
72 73 KRB5OBJ= rel_buffer.o util_buffer_set.o disp_com_err_status.o \
73 74 util_buffer.o util_errmap.o
74 75 # defines the duplicate sources we share with krb5 mech error table
75 76 KRB5ETDIR= $(SRC)/lib/gss_mechs/mech_krb5/et
76 77 KRB5ETOBJ= error_message.o adb_err.o adm_err.o asn1_err.o \
77 78 chpass_util_strings.o \
78 79 gssapi_err_krb5.o gssapi_err_generic.o \
79 80 import_err.o \
80 81 kadm_err.o kdb5_err.o kdc5_err.o kpasswd_strings.o krb5_err.o \
81 82 kv5m_err.o prof_err.o pty_err.o ss_err.o
82 83 # defines the duplicate sources we share with kernel module
83 84 UTSGSSDIR = $(SRC)/uts/common/gssapi
84 85 UTSGSSOBJ = gen_oids.o
85 86
86 87 SRCS += $(GSSCREDOBJ:%.o=$(GSSCRED_DIR)/%.c) \
87 88 $(KRB5OBJ:%.o=$(KRB5DIR)/%.c) \
88 89 $(KRB5ETOBJ:%.o=$(KRB5ETDIR)/%.c) \
89 90 $(UTSGSSOBJ:%.o=$(UTSGSSDIR)/%.c)
90 91 GSSLINTSRC = $(GSSOBJECTS:%.o=$(SRCDIR)/%.c) \
91 92 $(GSSCREDOBJ:%.o=$(GSSCRED_DIR)/%.c) \
92 93 $(UTSGSSOBJ:%.o=$(UTSGSSDIR)/%.c)
93 94 OBJECTS = $(GSSOBJECTS) $(GSSCREDOBJ) $(KRB5OBJ) $(UTSGSSOBJ) $(KRB5ETOBJ)
94 95
95 96 # include library definitions
96 97 include ../../Makefile.lib
97 98
98 99 LIBS = $(DYNLIB) $(LINTLIB)
99 100
100 101 $(LINTLIB):= SRCS = $(SRCDIR)/$(LINTSRC)
101 102 LDLIBS += -lc
102 103
103 104 CPPFLAGS += -I$(GSSCRED_DIR) -I$(SRC)/uts/common/gssapi/include \
↓ open down ↓ |
70 lines elided |
↑ open up ↑ |
104 105 -I$(SRC)/uts/common/gssapi/mechs/krb5/include \
105 106 -I$(SRC)/uts/common/gssapi/ \
106 107 -I$(SRC)/lib/gss_mechs/mech_krb5/include/ \
107 108 -DHAVE_STDLIB_H
108 109
109 110 CERRWARN += -_gcc=-Wno-unused-function
110 111 CERRWARN += -_gcc=-Wno-uninitialized
111 112 CERRWARN += -_gcc=-Wno-parentheses
112 113 CERRWARN += -_gcc=-Wno-empty-body
113 114
115 +# not linted
116 +SMATCH=off
117 +
114 118 .KEEP_STATE:
115 119
116 120 all: $(LIBS)
117 121
118 122 lintcheck:= SRCS= $(GSSLINTSRC)
119 123
120 124 lint: lintcheck
121 125
122 126 $(GSSCREDOBJ:%.o=pics/%.o):
123 127 $(COMPILE.c) -o $@ $(@:pics/%.o=$(GSSCRED_DIR)/%.c)
124 128 $(POST_PROCESS_O)
125 129
126 130 # we need this in libgss so we don't have to link against mech_krb5
127 131 pics/rel_buffer.o: $(KRB5DIR)/rel_buffer.c
128 132 $(COMPILE.c) -o $@ $(KRB5DIR)/rel_buffer.c
129 133 $(POST_PROCESS_O)
130 134
131 135 # we need this in libgss so we don't have to link against mech_krb5
132 136 pics/util_buffer_set.o: $(KRB5DIR)/util_buffer_set.c
133 137 $(COMPILE.c) -o $@ $(KRB5DIR)/util_buffer_set.c
134 138 $(POST_PROCESS_O)
135 139
136 140 # we need this in libgss so we don't have to link against mech_krb5
137 141 pics/disp_com_err_status.o: $(KRB5DIR)/disp_com_err_status.c
138 142 $(COMPILE.c) -o $@ $(KRB5DIR)/disp_com_err_status.c
139 143 $(POST_PROCESS_O)
140 144
141 145 # we need this in libgss so we don't have to link against mech_krb5
142 146 pics/util_buffer.o: $(KRB5DIR)/util_buffer.c
143 147 $(COMPILE.c) -o $@ $(KRB5DIR)/util_buffer.c
144 148 $(POST_PROCESS_O)
145 149
146 150 # we need this in libgss so we don't have to link against mech_krb5
147 151 pics/util_errmap.o: $(KRB5DIR)/util_errmap.c
148 152 $(COMPILE.c) -o $@ $(KRB5DIR)/util_errmap.c
149 153 $(POST_PROCESS_O)
150 154
151 155 # we need this in libgss so we don't have to link against mech_krb5
152 156 pics/error_message.o: $(KRB5ETDIR)/error_message.c
153 157 $(COMPILE.c) -o $@ $(KRB5ETDIR)/error_message.c
154 158 $(POST_PROCESS_O)
155 159
156 160 # we need this in libgss so we don't have to link against mech_krb5
157 161 pics/adb_err.o: $(KRB5ETDIR)/adb_err.c
158 162 $(COMPILE.c) -o $@ $(KRB5ETDIR)/adb_err.c
159 163 $(POST_PROCESS_O)
160 164
161 165 pics/adm_err.o: $(KRB5ETDIR)/adm_err.c
162 166 $(COMPILE.c) -o $@ $(KRB5ETDIR)/adm_err.c
163 167 $(POST_PROCESS_O)
164 168
165 169 # we need this in libgss so we don't have to link against mech_krb5
166 170 pics/asn1_err.o: $(KRB5ETDIR)/asn1_err.c
167 171 $(COMPILE.c) -o $@ $(KRB5ETDIR)/asn1_err.c
168 172 $(POST_PROCESS_O)
169 173
170 174 # we need this in libgss so we don't have to link against mech_krb5
171 175 pics/chpass_util_strings.o: $(KRB5ETDIR)/chpass_util_strings.c
172 176 $(COMPILE.c) -o $@ $(KRB5ETDIR)/chpass_util_strings.c
173 177 $(POST_PROCESS_O)
174 178
175 179 # we need this in libgss so we don't have to link against mech_krb5
176 180 pics/gssapi_err_generic.o: $(KRB5ETDIR)/gssapi_err_generic.c
177 181 $(COMPILE.c) -o $@ $(KRB5ETDIR)/gssapi_err_generic.c
178 182 $(POST_PROCESS_O)
179 183
180 184 # we need this in libgss so we don't have to link against mech_krb5
181 185 pics/gssapi_err_krb5.o: $(KRB5ETDIR)/gssapi_err_krb5.c
182 186 $(COMPILE.c) -o $@ $(KRB5ETDIR)/gssapi_err_krb5.c
183 187 $(POST_PROCESS_O)
184 188
185 189
186 190 # we need this in libgss so we don't have to link against mech_krb5
187 191 pics/import_err.o: $(KRB5ETDIR)/import_err.c
188 192 $(COMPILE.c) -o $@ $(KRB5ETDIR)/import_err.c
189 193 $(POST_PROCESS_O)
190 194
191 195 # we need this in libgss so we don't have to link against mech_krb5
192 196 pics/kadm_err.o: $(KRB5ETDIR)/kadm_err.c
193 197 $(COMPILE.c) -o $@ $(KRB5ETDIR)/kadm_err.c
194 198 $(POST_PROCESS_O)
195 199
196 200 # we need this in libgss so we don't have to link against mech_krb5
197 201 pics/kdb5_err.o: $(KRB5ETDIR)/kdb5_err.c
198 202 $(COMPILE.c) -o $@ $(KRB5ETDIR)/kdb5_err.c
199 203 $(POST_PROCESS_O)
200 204
201 205 # we need this in libgss so we don't have to link against mech_krb5
202 206 pics/kdc5_err.o: $(KRB5ETDIR)/kdc5_err.c
203 207 $(COMPILE.c) -o $@ $(KRB5ETDIR)/kdc5_err.c
204 208 $(POST_PROCESS_O)
205 209
206 210 # we need this in libgss so we don't have to link against mech_krb5
207 211 pics/kpasswd_strings.o: $(KRB5ETDIR)/kpasswd_strings.c
208 212 $(COMPILE.c) -o $@ $(KRB5ETDIR)/kpasswd_strings.c
209 213 $(POST_PROCESS_O)
210 214
211 215 # we need this in libgss so we don't have to link against mech_krb5
212 216 pics/krb5_err.o: $(KRB5ETDIR)/krb5_err.c
213 217 $(COMPILE.c) -o $@ $(KRB5ETDIR)/krb5_err.c
214 218 $(POST_PROCESS_O)
215 219
216 220 # we need this in libgss so we don't have to link against mech_krb5
217 221 pics/kv5m_err.o: $(KRB5ETDIR)/kv5m_err.c
218 222 $(COMPILE.c) -o $@ $(KRB5ETDIR)/kv5m_err.c
219 223 $(POST_PROCESS_O)
220 224
221 225 # we need this in libgss so we don't have to link against mech_krb5
222 226 pics/prof_err.o: $(KRB5ETDIR)/prof_err.c
223 227 $(COMPILE.c) -o $@ $(KRB5ETDIR)/prof_err.c
224 228 $(POST_PROCESS_O)
225 229
226 230 # we need this in libgss so we don't have to link against mech_krb5
227 231 pics/pty_err.o: $(KRB5ETDIR)/pty_err.c
228 232 $(COMPILE.c) -o $@ $(KRB5ETDIR)/pty_err.c
229 233 $(POST_PROCESS_O)
230 234
231 235 # we need this in libgss so we don't have to link against mech_krb5
232 236 pics/ss_err.o: $(KRB5ETDIR)/ss_err.c
233 237 $(COMPILE.c) -o $@ $(KRB5ETDIR)/ss_err.c
234 238 $(POST_PROCESS_O)
235 239
236 240 # gen_oids.c is kept in the kernel since the OIDs declared in them are
237 241 # used by rpcsec module
238 242 pics/gen_oids.o: $(SRC)/uts/common/gssapi/gen_oids.c
239 243 $(COMPILE.c) -o $@ $(SRC)/uts/common/gssapi/gen_oids.c
240 244 $(POST_PROCESS_O)
241 245
242 246 # include library targets
243 247 include ../../Makefile.targ
↓ open down ↓ |
120 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX