Print this page
10079 smatch Makefile changes for usr/src/lib
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/lib/smbsrv/libsmb/Makefile.com
+++ new/usr/src/lib/smbsrv/libsmb/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 (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
23 23 # Copyright 2014 Nexenta Systems, Inc. All rights reserved.
24 24 #
25 +# Copyright (c) 2018, Joyent, Inc.
25 26
26 27 LIBRARY= libsmb.a
27 28 VERS= .1
28 29
29 30 OBJS_SHARED = \
30 31 smb_door_legacy.o \
31 32 smb_inet.o \
32 33 smb_msgbuf.o \
33 34 smb_native.o \
34 35 smb_oem.o \
35 36 smb_sid.o \
36 37 smb_string.o \
37 38 smb_token.o \
38 39 smb_token_xdr.o \
39 40 smb_utf8.o \
40 41 smb_xdr.o
41 42
42 43 OBJS_COMMON = \
43 44 smb_acl.o \
44 45 smb_auth.o \
45 46 smb_cache.o \
46 47 smb_cfg.o \
47 48 smb_crypt.o \
48 49 smb_ctxbuf.o \
49 50 smb_domain.o \
50 51 smb_door_encdec.o \
51 52 smb_doorclnt.o \
52 53 smb_ht.o \
53 54 smb_idmap.o \
54 55 smb_info.o \
55 56 smb_kmod.o \
56 57 smb_lgrp.o \
57 58 smb_nic.o \
58 59 smb_pwdutil.o \
59 60 smb_privilege.o \
60 61 smb_reparse.o \
61 62 smb_sam.o \
62 63 smb_scfutil.o \
63 64 smb_sd.o \
64 65 smb_status_tbl.o \
65 66 smb_syslog.o \
66 67 smb_util.o \
67 68 smb_wksids.o
68 69
69 70 OBJECTS= $(OBJS_COMMON) $(OBJS_SHARED)
70 71
71 72 include ../../../Makefile.lib
72 73 include ../../Makefile.lib
73 74
74 75 INCS += -I$(SRC)/common/smbsrv
75 76 INCS += -I$(SRC)/lib/libsmbfs/smb
76 77
77 78 LINTCHECKFLAGS += -erroff=E_INCONS_ARG_DECL2
78 79 LINTCHECKFLAGS += -erroff=E_BAD_FORMAT_STR2
79 80
80 81 LDLIBS += $(MACH_LDLIBS)
↓ open down ↓ |
46 lines elided |
↑ open up ↑ |
81 82 # perfer to keep libs ordered by dependence
82 83 LDLIBS += -lscf -lmd -luuid -lpkcs11 -lcryptoutil
83 84 LDLIBS += -lsec -lidmap -lreparse -lcmdutils -lavl
84 85 LDLIBS += -lnvpair -lresolv -lsocket -lnsl -lc
85 86 CPPFLAGS += $(INCS) -D_REENTRANT
86 87 CPPFLAGS += -Dsyslog=smb_syslog
87 88 CERRWARN += -_gcc=-Wno-uninitialized
88 89 CERRWARN += -_gcc=-Wno-char-subscripts
89 90 CERRWARN += -_gcc=-Wno-switch
90 91
92 +# not linted
93 +SMATCH=off
94 +
91 95 SRCS= $(OBJS_COMMON:%.o=$(SRCDIR)/%.c) \
92 96 $(OBJS_SHARED:%.o=$(SRC)/common/smbsrv/%.c)
93 97
94 98 include ../../Makefile.targ
95 99 include ../../../Makefile.targ
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX