Print this page
11528 Makefile.noget can get gone
11529 Use -Wno-maybe-initialized
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 #
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 2018 Nexenta Systems, Inc. All rights reserved.
28 28 #
29 29 # Copyright (c) 2018, Joyent, Inc.
30 30
31 31 #
32 32 # lib/libsmbfs/Makefile.com
33 33 #
34 34
35 35 LIBRARY= libsmbfs.a
36 36 VERS= .1
37 37
38 38 # leaving out: kiconv.o
39 39
40 40 OBJ_LIB=\
41 41 acl_api.o \
42 42 acl_print.o \
43 43 charsets.o \
44 44 cfopt.o \
45 45 connect.o \
46 46 crypt.o \
47 47 ctx.o \
48 48 derparse.o \
49 49 file.o \
50 50 findvc.o \
51 51 getaddr.o \
52 52 iod_cl.o \
53 53 iod_wk.o \
54 54 keychain.o \
55 55 krb5ssp.o \
56 56 mbuf.o \
57 57 nb.o \
58 58 nb_name.o \
59 59 nb_net.o \
60 60 nbns_rq.o \
61 61 newvc.o \
62 62 nls.o \
63 63 ntlm.o \
64 64 ntlmssp.o \
65 65 print.o \
66 66 rcfile.o \
67 67 rc_scf.o \
68 68 spnego.o \
69 69 spnegoparse.o \
70 70 ssp.o \
71 71 subr.o \
72 72 ui-sun.o \
73 73 utf_str.o
74 74
75 75 OBJ_CMN= smbfs_ntacl.o
76 76
77 77 OBJECTS= $(OBJ_LIB) $(OBJ_CMN)
78 78
79 79 include $(SRC)/lib/Makefile.lib
80 80
81 81 LIBS = $(DYNLIB) $(LINTLIB)
82 82
83 83 SRCDIR= ../smb
84 84 CMNDIR= $(SRC)/common/smbclnt
85 85
86 86 SRCS= $(OBJ_LIB:%.o=$(SRCDIR)/%.c) \
87 87 $(OBJ_CMN:%.o=$(CMNDIR)/%.c)
↓ open down ↓ |
87 lines elided |
↑ open up ↑ |
88 88
89 89 $(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC)
90 90
91 91 CSTD= $(CSTD_GNU99)
92 92
93 93 LDLIBS += -lsocket -lnsl -lc -lmd -lpkcs11 -lkrb5 -lsec -lidmap -lscf -luuid
94 94
95 95 # normal warnings...
96 96 CFLAGS += $(CCVERBOSE)
97 97
98 -CERRWARN += -_gcc=-Wno-uninitialized
98 +CERRWARN += $(CNOWARN_UNINIT)
99 99 CERRWARN += -_gcc=-Wno-unused-variable
100 100
101 101 # not linted
102 102 SMATCH=off
103 103
104 104 CPPFLAGS += -D__EXTENSIONS__ -D_REENTRANT -DMIA \
105 105 -I$(SRCDIR) -I.. -I../netsmb \
106 106 -I$(SRC)/uts/common \
107 107 -I$(SRC)/common/smbclnt
108 108
109 109 # This is pretty mature code, so let's just ignore these.
110 110 LINTCHECKFLAGS += -erroff=E_INCONS_ARG_DECL2
111 111 LINTCHECKFLAGS += -erroff=E_INCONS_VAL_TYPE_DECL2
112 112 LINTCHECKFLAGS += -erroff=E_FUNC_RET_MAYBE_IGNORED2
113 113 LINTCHECKFLAGS += -erroff=E_FUNC_RET_ALWAYS_IGNOR2
114 114
115 115 # Debugging
116 116 ${NOT_RELEASE_BUILD} CPPFLAGS += -DDEBUG
117 117
118 118 all: $(LIBS)
119 119
120 120 lint: lintcheck
121 121
122 122 include ../../Makefile.targ
123 123
124 124 objs/%.o pics/%.o: $(CMNDIR)/%.c
125 125 $(COMPILE.c) -o $@ $<
126 126 $(POST_PROCESS_O)
127 127
128 128 .KEEP_STATE:
↓ open down ↓ |
20 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX