Print this page
11528 Makefile.noget can get gone
11529 Use -Wno-maybe-initialized
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/cmd/gss/gssd/Makefile
+++ new/usr/src/cmd/gss/gssd/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 2009 Sun Microsystems, Inc. All rights reserved.
23 23 # Use is subject to license terms.
24 24 #
25 25 # Copyright (c) 2018, Joyent, Inc.
26 26
27 27 TESTPROG = gssdtest
28 28
29 29 OUTPUT_OPTION = -I.
30 30
31 31 PROG= gssd
32 32
33 33 MANIFEST= gss.xml
34 34
35 35 GSSD_BASEOBJS = gssd.o gssd_proc.o gssd_generic.o gssd_getuid.o
36 36 GSSC_BASEOBJS = gssdtest.o gssd_release_name_and_type.o gssd_clnt_stubs.o \
37 37 gssd_handle.o
38 38
39 39 GD_OBJS = gssd_svc.o
40 40 GC_OBJS = gssd_clnt.o
41 41 G_OBJS = gssd_xdr.o
42 42 GSSDOBJS = $(GSSD_BASEOBJS) $(GD_OBJS) $(G_OBJS)
43 43 GSSCOBJS = $(GSSC_BASEOBJS) $(GC_OBJS) $(G_OBJS)
44 44
45 45 GSSD_LINTS = $(GSSD_BASEOBJS:.o=.c)
46 46 GSSC_LINTS = $(GSSC_BASEOBJS:.o=.c)
47 47
48 48 ROBJS = $(GD_OBJS) $(GC_OBJS) $(G_OBJS)
49 49 OBJS = $(GSSD_BASEOBJS) $(GD_OBJS) $(GSSC_BASEOBJS) $(GC_OBJS) $(G_OBJS)
50 50 SRCS = $(OBJS:.o=.c)
51 51 RSRC = $(ROBJS:.o=.c)
52 52 RSRC += gssd.h
53 53
54 54 CLOBBERFILES += $(TESTPROG)
55 55
56 56 include ../../Makefile.cmd
57 57
58 58 ROOTMANIFESTDIR= $(ROOTSVCNETWORKRPC)
59 59
60 60 TEXT_DOMAIN = SUNW_OST_NETRPC
61 61 POFILE = $(PROG).po
62 62 POFILES = generic.po
63 63
64 64 #
65 65 # Override $ROOTLIB
66 66 #
↓ open down ↓ |
66 lines elided |
↑ open up ↑ |
67 67 ROOTLIB= $(ROOT)/usr/lib/gss
68 68
69 69 DIRS= $(ROOTLIB)
70 70
71 71 CPPFLAGS += -I$(SRC)/uts/common/gssapi/include
72 72 COPTFLAG += $(XESS) #-I$(KINCDIR)
73 73
74 74 CERRWARN += -_gcc=-Wno-unused-variable
75 75 CERRWARN += -_gcc=-Wno-implicit-function-declaration
76 76 CERRWARN += -_gcc=-Wno-parentheses
77 -CERRWARN += -_gcc=-Wno-uninitialized
77 +CERRWARN += $(CNOWARN_UNINIT)
78 78
79 79 # not linted
80 80 SMATCH=off
81 81
82 82 LDLIBS += -lgss -lnsl
83 83
84 84 gssd := MAPFILES = $(MAPFILE.INT) $(MAPFILE.NGB)
85 85 gssd := LDFLAGS += $(MAPFILES:%=-M%)
86 86
87 87 $(GPROGS) := CPPFLAGS += -DSYSV -DSunOS=50
88 88
89 89 .KEEP_STATE:
90 90
91 91 all: $(PROG) $(TESTPROG)
92 92
93 93 $(ROOTLIB):
94 94 $(INS.dir)
95 95
96 96 $(ROOTLIB)/%: %
97 97 $(INS.file)
98 98
99 99 gssd: $(GSSDOBJS) $$(MAPFILES)
100 100 $(LINK.c) $(GSSDOBJS) -o $@ $(LDLIBS)
101 101 $(POST_PROCESS)
102 102
103 103 gssdtest: $(GSSCOBJS)
104 104 $(LINK.c) $(GSSCOBJS) -o $@ $(LDLIBS)
105 105 $(POST_PROCESS)
106 106
107 107 GSSDX= $(SRC)/uts/common/gssapi/gssd.x
108 108 gssd.x: $(GSSDX)
109 109 rm -f $@
110 110 cp $(GSSDX) $@
111 111
112 112 # Rules to generate derived rpcgen files from gssd.x spec file.
113 113
114 114 # NOTE WELL: There is code in gssd that assumes gssd is NOT
115 115 # multi-threaded. Do NOT add -A to the rpcgen argument list in the
116 116 # Makefile unless you also remove this assumption.
117 117
118 118 gssd.h: gssd.x
119 119 $(RM) $@
120 120 $(RPCGEN) -M -h gssd.x > $@
121 121
122 122 gssd_clnt.c: gssd.x
123 123 $(RM) $@
124 124 $(RPCGEN) -M -l gssd.x > $@
125 125
126 126 gssd_svc.c: gssd.x
127 127 $(RM) $@
128 128 $(RPCGEN) -M -m gssd.x > $@
129 129
130 130 gssd_xdr.c: gssd.x
131 131 $(RM) $@
132 132 $(RPCGEN) -M -c gssd.x > $@
133 133
134 134 $(OBJS): gssd.h
135 135
136 136 install: all $(DIRS) $(ROOTLIBPROG) $(ROOTMANIFEST)
137 137
138 138 install_h:
139 139
140 140 clean:
141 141 $(RM) $(OBJS) $(RSRC) gssd.x
142 142
143 143 lint_gssd:
144 144 $(LINT.c) $(GSSD_LINTS)
145 145
146 146 lint_gssc:
147 147 $(LINT.c) $(GSSC_LINTS)
148 148
149 149 lint: lint_gssd lint_gssc
150 150
151 151 check: $(CHKMANIFEST)
152 152
153 153 include ../../Makefile.targ
154 154
155 155 $(POFILE): $(DERIVED_FILES) .WAIT $(POFILES)
156 156 $(RM) $@
157 157 $(CAT) $(POFILES) > $@
158 158
159 159 generic.po: FRC
160 160 $(RM) messages.po
161 161 $(XGETTEXT) $(XGETFLAGS) `$(GREP) -l gettext *.[ch]`
162 162 $(SED) "/^domain/d" messages.po > $@
163 163 $(RM) messages.po
164 164
165 165 FRC:
166 166
↓ open down ↓ |
79 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX