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