Print this page
10079 smatch Makefile changes for usr/src/lib
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/lib/smbsrv/libfksmbsrv/Makefile.com
+++ new/usr/src/lib/smbsrv/libfksmbsrv/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 2008 Sun Microsystems, Inc. All rights reserved.
23 23 # Use is subject to license terms.
24 24 #
25 25 # Copyright 2014 Nexenta Systems, Inc. All rights reserved.
26 26 #
27 +# Copyright (c) 2018, Joyent, Inc.
27 28
28 29 LIBRARY = libfksmbsrv.a
29 30 VERS = .1
30 31
31 32 OBJS_LOCAL = \
32 33 fksmb_cred.o \
33 34 fksmb_dt.o \
34 35 fksmb_fem.o \
35 36 fksmb_idmap.o \
36 37 fksmb_init.o \
37 38 fksmb_kdoor.o \
38 39 fksmb_sign_pkcs.o \
39 40 fake_lookup.o \
40 41 fake_nblk.o \
41 42 fake_vfs.o \
42 43 fake_vnode.o \
43 44 fake_vop.o \
44 45 fake_xattr.o \
45 46 reparse.o \
46 47 vncache.o
47 48
48 49 # See also: $SRC/uts/common/Makefile.files
49 50 # NB: Intentionally ommitted, compared w/ the above:
50 51 # smb_cred, smb_fem, smb_idmap, smb_init, smb_kdoor
51 52 #
52 53 OBJS_FS_SMBSRV = \
53 54 smb_acl.o \
54 55 smb_alloc.o \
55 56 smb_authenticate.o \
56 57 smb_close.o \
57 58 smb_cmn_rename.o \
58 59 smb_cmn_setfile.o \
59 60 smb_common_open.o \
60 61 smb_common_transact.o \
61 62 smb_create.o \
62 63 smb_delete.o \
63 64 smb_dfs.o \
64 65 smb_directory.o \
65 66 smb_dispatch.o \
66 67 smb_echo.o \
67 68 smb_errno.o \
68 69 smb_find.o \
69 70 smb_flush.o \
70 71 smb_fsinfo.o \
71 72 smb_fsops.o \
72 73 smb_kshare.o \
73 74 smb_kutil.o \
74 75 smb_lock.o \
75 76 smb_lock_byte_range.o \
76 77 smb_locking_andx.o \
77 78 smb_logoff_andx.o \
78 79 smb_mangle_name.o \
79 80 smb_mbuf_marshaling.o \
80 81 smb_mbuf_util.o \
81 82 smb_negotiate.o \
82 83 smb_net.o \
83 84 smb_node.o \
84 85 smb_notify.o \
85 86 smb_nt_cancel.o \
86 87 smb_nt_create_andx.o \
87 88 smb_nt_transact_create.o \
88 89 smb_nt_transact_ioctl.o \
89 90 smb_nt_transact_notify_change.o \
90 91 smb_nt_transact_quota.o \
91 92 smb_nt_transact_security.o \
92 93 smb_odir.o \
93 94 smb_ofile.o \
94 95 smb_open_andx.o \
95 96 smb_opipe.o \
96 97 smb_oplock.o \
97 98 smb_pathname.o \
98 99 smb_print.o \
99 100 smb_process_exit.o \
100 101 smb_query_fileinfo.o \
101 102 smb_quota.o \
102 103 smb_read.o \
103 104 smb_rename.o \
104 105 smb_sd.o \
105 106 smb_seek.o \
106 107 smb_server.o \
107 108 smb_session.o \
108 109 smb_session_setup_andx.o \
109 110 smb_set_fileinfo.o \
110 111 smb_signing.o \
111 112 smb_thread.o \
112 113 smb_tree.o \
113 114 smb_trans2_create_directory.o \
114 115 smb_trans2_dfs.o \
115 116 smb_trans2_find.o \
116 117 smb_tree_connect.o \
117 118 smb_unlock_byte_range.o \
118 119 smb_user.o \
119 120 smb_vfs.o \
120 121 smb_vops.o \
121 122 smb_vss.o \
122 123 smb_write.o \
123 124 \
124 125 smb2_dispatch.o \
125 126 smb2_cancel.o \
126 127 smb2_change_notify.o \
127 128 smb2_close.o \
128 129 smb2_create.o \
129 130 smb2_echo.o \
130 131 smb2_flush.o \
131 132 smb2_ioctl.o \
132 133 smb2_lock.o \
133 134 smb2_logoff.o \
134 135 smb2_negotiate.o \
135 136 smb2_ofile.o \
136 137 smb2_oplock.o \
137 138 smb2_qinfo_file.o \
138 139 smb2_qinfo_fs.o \
139 140 smb2_qinfo_sec.o \
140 141 smb2_qinfo_quota.o \
141 142 smb2_query_dir.o \
142 143 smb2_query_info.o \
143 144 smb2_read.o \
144 145 smb2_session_setup.o \
145 146 smb2_set_info.o \
146 147 smb2_setinfo_file.o \
147 148 smb2_setinfo_fs.o \
148 149 smb2_setinfo_quota.o \
149 150 smb2_setinfo_sec.o \
150 151 smb2_signing.o \
151 152 smb2_tree_connect.o \
152 153 smb2_tree_disconn.o \
153 154 smb2_write.o
154 155
155 156 # Can't just link with -lsmb because of user vs kernel API
156 157 # i.e. can't call free with mem from kmem_alloc, which is
157 158 # what happens if we just link with -lsmb
158 159 OBJS_CMN_SMBSRV = \
159 160 smb_inet.o \
160 161 smb_match.o \
161 162 smb_msgbuf.o \
162 163 smb_native.o \
163 164 smb_netbios_util.o \
164 165 smb_oem.o \
165 166 smb_sid.o \
166 167 smb_string.o \
167 168 smb_token.o \
168 169 smb_token_xdr.o \
169 170 smb_utf8.o \
170 171 smb_xdr.o
171 172
172 173 OBJS_MISC = \
173 174 acl_common.o \
174 175 pathname.o \
175 176 refstr.o \
176 177 smb_status2winerr.o \
177 178 xattr_common.o
178 179
179 180 OBJECTS = \
180 181 $(OBJS_LOCAL) \
181 182 $(OBJS_FS_SMBSRV) \
182 183 $(OBJS_CMN_SMBSRV) \
183 184 $(OBJS_MISC)
184 185
185 186 include ../../../Makefile.lib
186 187 include ../../Makefile.lib
187 188
188 189 # Force SOURCEDEBUG
189 190 CSOURCEDEBUGFLAGS = -g
190 191 CCSOURCEDEBUGFLAGS = -g
191 192 STRIP_STABS = :
192 193
193 194
194 195 # Note: need our sys includes _before_ ENVCPPFLAGS, proto etc.
195 196 CPPFLAGS.first += -I../../../libfakekernel/common
196 197 CPPFLAGS.first += -I../common
197 198
198 199 INCS += -I$(SRC)/uts/common
199 200 INCS += -I$(SRC)/common/smbsrv
200 201 INCS += -I$(SRC)/common
201 202
202 203 LINTCHECKFLAGS += -erroff=E_INCONS_ARG_DECL2
203 204 LINTCHECKFLAGS += -erroff=E_INCONS_VAL_TYPE_DECL2
204 205 LINTCHECKFLAGS += -erroff=E_INCONS_VAL_TYPE_USED2
205 206
206 207 LDLIBS += $(MACH_LDLIBS)
207 208 LDLIBS += -lfakekernel -lidmap -lcmdutils
↓ open down ↓ |
171 lines elided |
↑ open up ↑ |
208 209 LDLIBS += -lavl -lnvpair -lnsl -lpkcs11 -lreparse -lc
209 210
210 211 CPPFLAGS += $(INCS) -D_REENTRANT -D_FAKE_KERNEL
211 212 CPPFLAGS += -D_FILE_OFFSET_BITS=64
212 213 # Always want DEBUG here
213 214 CPPFLAGS += -DDEBUG
214 215
215 216 CERRWARN += -_gcc=-Wno-parentheses
216 217 CERRWARN += -_gcc=-Wno-switch
217 218
219 +# not linted
220 +SMATCH=off
221 +
218 222 SRCS= $(OBJS_LOCAL:%.o=$(SRCDIR)/%.c) \
219 223 $(OBJS_FS_SMBSRV:%.o=$(SRC)/uts/common/fs/smbsrv/%.c) \
220 224 $(OBJS_CMN_SMBSRV:%.o=$(SRC)/common/smbsrv/%.c)
221 225
222 226 all:
223 227
224 228 pics/%.o: $(SRC)/uts/common/fs/smbsrv/%.c
225 229 $(COMPILE.c) -o $@ $<
226 230 $(POST_PROCESS_O)
227 231
228 232 pics/acl_common.o: $(SRC)/common/acl/acl_common.c
229 233 $(COMPILE.c) -o $@ $(SRC)/common/acl/acl_common.c
230 234 $(POST_PROCESS_O)
231 235
232 236 pics/smb_status2winerr.o: $(SRC)/common/smbclnt/smb_status2winerr.c
233 237 $(COMPILE.c) -o $@ $(SRC)/common/smbclnt/smb_status2winerr.c
234 238 $(POST_PROCESS_O)
235 239
236 240 pics/pathname.o: $(SRC)/uts/common/fs/pathname.c
237 241 $(COMPILE.c) -o $@ $(SRC)/uts/common/fs/pathname.c
238 242 $(POST_PROCESS_O)
239 243
240 244 pics/refstr.o: $(SRC)/uts/common/os/refstr.c
241 245 $(COMPILE.c) -o $@ $(SRC)/uts/common/os/refstr.c
242 246 $(POST_PROCESS_O)
243 247
244 248 pics/xattr_common.o: $(SRC)/common/xattr/xattr_common.c
245 249 $(COMPILE.c) -o $@ $(SRC)/common/xattr/xattr_common.c
246 250 $(POST_PROCESS_O)
247 251
248 252 # Makefile.targ has rule for $(SRC)/common/smbsrv/%.c
249 253
250 254 .KEEP_STATE:
251 255
252 256 include ../../Makefile.targ
253 257 include ../../../Makefile.targ
↓ open down ↓ |
26 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX