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/ypcmd/ypupdated/Makefile
+++ new/usr/src/cmd/ypcmd/ypupdated/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 NETYPPROG = rpc.ypupdated
27 28 PROG = $(NETYPPROG)
28 29
29 30 MANIFEST = update.xml
30 31
31 32 include ../../Makefile.cmd
32 33
33 34 ROOTMANIFESTDIR = $(ROOTSVCNETWORKNIS)
34 35
35 36 #installed directories
36 37 RPCSVC= $(ROOT)/usr/include/rpcsvc
37 38 NETSVC = $(ROOTLIB)/netsvc
38 39 NETYP = $(NETSVC)/yp
39 40 ROOTDIRS = $(NETSVC) $(NETYP)
40 41
41 42 # include library definitions
42 43 LDLIBS += -lnsl
43 44
44 45 # include path to yptol.h (for name of N2L mapping file)
45 46 CPPFLAGS += -I$(SRC)/lib/libnisdb/yptol
46 47
47 48 INETYPPROG= $(NETYPPROG:%=$(NETYP)/%)
↓ open down ↓ |
16 lines elided |
↑ open up ↑ |
48 49
49 50 RPCYPUPDATEOBJ = rpc.ypupdated.o openchild.o
50 51
51 52 OBJS = $(RPCYPUPDATEOBJ)
52 53
53 54 SRCS = $(OBJS:%.o=%.c)
54 55
55 56 CERRWARN += -_gcc=-Wno-implicit-function-declaration
56 57 CERRWARN += -_gcc=-Wno-unused-variable
57 58
59 +# Suppress error: typedef locally defined but not used
60 +rpc.ypupdated.o := CERRWARN += -_gcc=-Wno-unused-local-typedefs
61 +
58 62 CLOBBERFILES += ypupdated_prot.h
59 63
60 64 #conditional assignments
61 65 $(INETSVC) := FILEMODE=555
62 66
63 67 #install rules
64 68
65 69 .KEEP_STATE:
66 70
67 71 all: $(PROG)
68 72
69 73 ypupdated_prot.h: ypupdate_prot.x
70 74 $(RM) ypupdated_prot.h; $(RPCGEN) -C -h ypupdate_prot.x -o ypupdated_prot.h
71 75
72 76 $(RPCYPUPDATEOBJ): ypupdated_prot.h
73 77
74 78 rpc.ypupdated: $(RPCYPUPDATEOBJ)
75 79 $(LINK.c) -o $@ $(RPCYPUPDATEOBJ) $(LDLIBS)
76 80 $(POST_PROCESS)
77 81
78 82 install: all $(ROOTDIRS) $(IBINPROG) $(INETYPPROG) $(ROOTMANIFEST)
79 83
80 84 $(ROOTDIRS):
81 85 $(INS.dir)
82 86
83 87 $(NETYP)/%: %
84 88 $(INS.file)
85 89
86 90 clean:
87 91 $(RM) $(OBJS)
88 92
89 93 lint:
90 94 ${LINT.c} ${SRCS}
91 95
92 96 check: $(CHKMANIFEST)
93 97
94 98 cstyle:
95 99 ${CSTYLE} ${SRCS}
96 100
97 101 # include library targets
98 102 include ../../Makefile.targ
↓ open down ↓ |
31 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX