Print this page
10079 smatch Makefile changes for usr/src/lib
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/lib/libsmbfs/Makefile.com
+++ new/usr/src/lib/libsmbfs/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
17 17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 18 #
↓ open down ↓ |
18 lines elided |
↑ open up ↑ |
19 19 # CDDL HEADER END
20 20 #
21 21
22 22 #
23 23 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
24 24 # Use is subject to license terms.
25 25 # Copyright 2015 Igor Kozhukhov <ikozhukhov@gmail.com>
26 26 #
27 27 # Copyright 2013 Nexenta Systems, Inc. All rights reserved.
28 28 #
29 +# Copyright (c) 2018, Joyent, Inc.
29 30
30 31 #
31 32 # lib/libsmbfs/Makefile.com
32 33 #
33 34
34 35 LIBRARY= libsmbfs.a
35 36 VERS= .1
36 37
37 38 # leaving out: kiconv.o
38 39
39 40 OBJ_LIB=\
40 41 acl_api.o \
41 42 acl_print.o \
42 43 charsets.o \
43 44 cfopt.o \
44 45 connect.o \
45 46 crypt.o \
46 47 ctx.o \
47 48 derparse.o \
48 49 file.o \
49 50 findvc.o \
50 51 getaddr.o \
51 52 iod_cl.o \
52 53 iod_wk.o \
53 54 keychain.o \
54 55 krb5ssp.o \
55 56 mbuf.o \
56 57 nb.o \
57 58 nb_name.o \
58 59 nb_net.o \
59 60 nb_ssn.o \
60 61 nbns_rq.o \
61 62 negprot.o \
62 63 newvc.o \
63 64 nls.o \
64 65 ntlm.o \
65 66 ntlmssp.o \
66 67 print.o \
67 68 rap.o \
68 69 rcfile.o \
↓ open down ↓ |
30 lines elided |
↑ open up ↑ |
69 70 rq.o \
70 71 signing.o \
71 72 spnego.o \
72 73 spnegoparse.o \
73 74 ssnsetup.o \
74 75 ssp.o \
75 76 subr.o \
76 77 ui-sun.o \
77 78 utf_str.o
78 79
79 -OBJ_CMN= smbfs_ntacl.o
80 +OBJ_CMN= smbfs_ntacl.o
80 81
81 82 OBJECTS= $(OBJ_LIB) $(OBJ_CMN)
82 83
83 84 include $(SRC)/lib/Makefile.lib
84 85
85 86 LIBS = $(DYNLIB) $(LINTLIB)
86 87
87 88 SRCDIR= ../smb
88 89 CMNDIR= $(SRC)/common/smbclnt
89 90
90 91 SRCS= $(OBJ_LIB:%.o=$(SRCDIR)/%.c) \
91 92 $(OBJ_CMN:%.o=$(CMNDIR)/%.c)
92 93
93 94 $(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC)
94 95
95 96 CSTD= $(CSTD_GNU99)
96 97
97 98 LDLIBS += -lsocket -lnsl -lc -lmd -lpkcs11 -lkrb5 -lsec -lidmap
98 99
99 100 # normal warnings...
100 -CFLAGS += $(CCVERBOSE)
101 +CFLAGS += $(CCVERBOSE)
101 102
102 103 CERRWARN += -_gcc=-Wno-uninitialized
103 104 CERRWARN += -_gcc=-Wno-unused-variable
104 105
106 +# not linted
107 +SMATCH=off
108 +
105 109 CPPFLAGS += -D__EXTENSIONS__ -D_REENTRANT -DMIA \
106 110 -I$(SRCDIR) -I.. -I../netsmb \
107 111 -I$(SRC)/uts/common \
108 112 -I$(SRC)/common/smbclnt
109 113
110 114 # Debugging
111 115 ${NOT_RELEASE_BUILD} CPPFLAGS += -DDEBUG
112 116
113 117 # uncomment these for dbx debugging
114 118 #COPTFLAG = -g
115 119 #CTF_FLAGS =
116 120 #CTFCONVERT_O=
117 121 #CTFMERGE_LIB=
118 122
119 123 # Filter out the less important lint.
120 124 # See lgrep.awk
121 125 LGREP = $(AWK) -f $(SRCDIR)/lgrep.awk
122 126 LTAIL += 2>&1 | $(LGREP)
123 127
124 128 all: $(LIBS)
125 129
126 130 lint: lintcheck_t
127 131
128 132 include ../../Makefile.targ
129 133
130 134 lintcheck_t: $$(SRCS)
131 135 $(LINT.c) $(LINTCHECKFLAGS) $(SRCS) $(LDLIBS) $(LTAIL)
132 136
133 137 objs/%.o pics/%.o: $(CMNDIR)/%.c
134 138 $(COMPILE.c) -o $@ $<
135 139 $(POST_PROCESS_O)
136 140
137 141 .KEEP_STATE:
↓ open down ↓ |
23 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX