Print this page
10080 smatch Makefile changes for usr/src/cmd
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/cmd/idmap/idmapd/Makefile
+++ new/usr/src/cmd/idmap/idmapd/Makefile
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 PROG = idmapd
27 28 MANIFEST = idmap.xml
28 29 SERVEROBJS = \
29 30 adspriv_impl.o \
30 31 directory_provider_builtin.o \
31 32 directory_provider_nsswitch.o \
32 33 directory_provider_ad.o \
33 34 directory_server.o \
34 35 adutils.o \
35 36 dbutils.o \
36 37 idmap_config.o \
37 38 idmapd.o \
38 39 init.o \
39 40 idmap_lsa.o \
40 41 krb5_lookup.o \
41 42 nldaputils.o \
42 43 server.o \
43 44 wksids.o
44 45
45 46 GENOBJS = \
46 47 adspriv_srv.o \
47 48 rpc_svc.o
48 49
49 50 SERVERSRCS = $(SERVEROBJS:%.o=%.c)
50 51 GENSRCS = $(GENOBJS:%.o=%.c)
51 52 OBJS = $(SERVEROBJS) $(GENOBJS)
52 53 SRCS = $(SERVERSRCS)
53 54 POFILES = $(OBJS:%.o=%.po)
54 55
55 56 all := TARGET = all
↓ open down ↓ |
21 lines elided |
↑ open up ↑ |
56 57 install := TARGET = install
57 58 clean := TARGET = clean
58 59 clobber := TARGET = clobber
59 60
60 61 include ../../Makefile.cmd
61 62
62 63 CERRWARN += -_gcc=-Wno-type-limits
63 64 CERRWARN += -_gcc=-Wno-switch
64 65 CERRWARN += -_gcc=-Wno-uninitialized
65 66
67 +# not linted
68 +SMATCH=off
69 +
66 70 TEXT_DOMAIN = SUNW_OST_OSLIB
67 71 XGETTEXT = $(GNUXGETTEXT)
68 72 XGETFLAGS = --foreign-user --strict -n -E --width=72 \
69 73 --omit-header --keyword=directoryError:2 \
70 74 --language=C --force-po
71 75
72 76 CSTD = $(CSTD_GNU99)
73 77 POFILE = $(PROG)_all.po
74 78
75 79 RPC_MSGOUT_OPT = -DRPC_MSGOUT=idmap_rpc_msgout
76 80
77 81 ROOTMANIFESTDIR = $(ROOTSVCSYSTEM)
78 82 $(ROOTMANIFEST) := FILEMODE= 444
79 83 RPCSVC= ../../../uts/common/rpcsvc
80 84 ADS_CMN=../../../lib/libads/common
81 85
82 86 INCS += -I. -I../../../lib/libidmap/common \
83 87 -I../../../lib/libsldap/common \
84 88 -I../../../lib/libadutils/common \
85 89 -I $(ADS_CMN) \
86 90 -I../../../lib/smbsrv/libsmb/common
87 91
88 92 # Should not have to do this, but the Kerberos includes are a mess.
89 93 INCS += -I $(ROOT)/usr/include/kerberosv5
90 94
91 95 $(OBJS) := CPPFLAGS += $(INCS) -D_REENTRANT
92 96 $(POFILE) := CPPFLAGS += $(INCS)
93 97
94 98 LINTFLAGS += -xerroff=E_NAME_DEF_NOT_USED2
95 99 LINTFLAGS += -xerroff=E_NAME_USED_NOT_DEF2
96 100
97 101 CFLAGS += $(CCVERBOSE)
98 102 LDLIBS += \
99 103 -lsqlite-sys \
100 104 -lsecdb \
101 105 -lsocket \
102 106 -lnsl \
103 107 -lidmap \
104 108 -lscf \
105 109 -lsldap \
106 110 -lldap \
107 111 -luuid \
108 112 -ladutils \
109 113 -lads \
110 114 -lumem \
111 115 -lnvpair \
112 116 -luutil \
113 117 -L $(ROOT)/usr/lib/smbsrv \
114 118 -lsmb
115 119
116 120 rpc_svc.o := CFLAGS += $(RPC_MSGOUT_OPT)
117 121
118 122 $(PROG) := MAPFILES = $(MAPFILE.INT) $(MAPFILE.NGB)
119 123 $(PROG) := LDFLAGS += $(MAPFILES:%=-M%) \
120 124 -R /usr/lib/smbsrv
121 125
122 126 DIRMODE = 0755
123 127 FILEMODE = 0555
124 128
125 129 lint_SRCS := CPPFLAGS += $(INCS) -D_REENTRANT $(RPC_MSGOUT_OPT)
126 130
127 131 .KEEP_STATE:
128 132
129 133 .PARALLEL: $(OBJS)
130 134
131 135 all: $(PROG)
132 136
133 137 $(PROG): $(OBJS) $$(MAPFILES)
134 138 $(LINK.c) -o $@ $(OBJS) $(LDLIBS)
135 139 $(POST_PROCESS)
136 140
137 141 $(POFILE): $(POFILES)
138 142 $(RM) $(POFILE)
139 143 cat $(POFILES) > $(POFILE)
140 144
141 145 install: all $(ROOTLIBPROG) $(ROOTMANIFEST)
142 146
143 147 check: $(CHKMANIFEST)
144 148
145 149 clean:
146 150 $(RM) $(OBJS) $(GENSRCS)
147 151
148 152 lint: lint_SRCS
149 153
150 154 lint_SRCS:
151 155
152 156 RPCGENFLAGS = -CMN
153 157
154 158 adspriv_srv.o : adspriv_srv.c
155 159
156 160 adspriv_srv.c:
157 161 $(RPCGEN) $(RPCGENFLAGS) -m $(ADS_CMN)/ads_priv.x > $@
158 162
159 163 rpc_svc.o : rpc_svc.c
160 164
161 165 rpc_svc.c : $(RPCSVC)/idmap_prot.x
162 166 $(RPCGEN) $(RPCGENFLAGS) -m $(RPCSVC)/idmap_prot.x > $@
163 167
164 168 include ../../Makefile.targ
↓ open down ↓ |
89 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX