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