Print this page
11528 Makefile.noget can get gone
11529 Use -Wno-maybe-initialized
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/cmd/lp/Makefile.lp
+++ new/usr/src/cmd/lp/Makefile.lp
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 #
23 23 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
24 24 # Use is subject to license terms.
25 25 #
26 26 # Copyright (c) 2018, Joyent, Inc.
27 27
28 28 #
29 29 # cmd/lp/Makefile.lp
30 30 # Common makefile definitions (should be) used by all lp makefiles
31 31 #
32 32
33 33 include $(SRC)/cmd/Makefile.cmd
34 34
35 35 LPROOT= $(SRC)/cmd/lp
36 36 ROOTVAR= $(ROOT)/var
37 37 ROOTVARSP= $(ROOT)/var/spool
38 38
39 39 ROOTETCLP= $(ROOTETC)/lp
40 40 ROOTLIBLP= $(ROOTLIB)/lp
41 41 ROOTBINLP= $(ROOTBIN)/lp
42 42 ROOTLIBLPPOST = $(ROOTLIBLP)/postscript
43 43 ROOTLIBLPLOCL = $(ROOTLIBLP)/local
44 44
45 45 ROOTUSRUCB= $(ROOT)/usr/ucb
46 46
47 47
48 48 #
49 49 # $(EMODES): Modes for executables
50 50 # $(SMODES): Modes for setuid executables
51 51 # $(DMODES): Modes for directories
52 52 #
53 53 EMODES = 0555
54 54 SMODES = 04555
55 55 DMODES = 0775
56 56
57 57
58 58 INC = $(ROOT)/usr/include
59 59 INCSYS = $(INC)/sys
60 60
61 61 LPINC = $(SRC)/cmd/lp/include
62 62 LPLIB = $(SRC)/cmd/lp/lib
63 63
64 64 LIBACC = $(LPLIB)/access/liblpacc.a
65 65 LIBCLS = $(LPLIB)/class/liblpcls.a
66 66 LIBFLT = $(LPLIB)/filters/liblpflt.a
67 67 LIBFRM = $(LPLIB)/forms/liblpfrm.a
68 68 LIBLP = $(LPLIB)/lp/liblp.a
69 69 LIBMSG = $(LPLIB)/msgs/liblpmsg.a
70 70 LIBOAM = $(LPLIB)/oam/liblpoam.a
71 71 LIBPRT = $(LPLIB)/printers/liblpprt.a
72 72 LIBREQ = $(LPLIB)/requests/liblpreq.a
73 73 LIBSEC = $(LPLIB)/secure/liblpsec.a
74 74 LIBUSR = $(LPLIB)/users/liblpusr.a
75 75
76 76 LINTACC = $(LPLIB)/access/llib-llpacc.ln
77 77 LINTCLS = $(LPLIB)/class/llib-llpcls.ln
78 78 LINTFLT = $(LPLIB)/filters/llib-llpflt.ln
79 79 LINTFRM = $(LPLIB)/forms/llib-llpfrm.ln
80 80 LINTLP = $(LPLIB)/lp/llib-llp.ln
↓ open down ↓ |
80 lines elided |
↑ open up ↑ |
81 81 LINTMSG = $(LPLIB)/msgs/llib-llpmsg.ln
82 82 LINTOAM = $(LPLIB)/oam/llib-llpoam.ln
83 83 LINTPRT = $(LPLIB)/printers/llib-llpprt.ln
84 84 LINTREQ = $(LPLIB)/requests/llib-llpreq.ln
85 85 LINTSEC = $(LPLIB)/secure/llib-llpsec.ln
86 86 LINTUSR = $(LPLIB)/users/llib-llpusr.ln
87 87
88 88 CERRWARN += -_gcc=-Wno-sequence-point
89 89 CERRWARN += -_gcc=-Wno-implicit-function-declaration
90 90 CERRWARN += -_gcc=-Wno-parentheses
91 -CERRWARN += -_gcc=-Wno-uninitialized
91 +CERRWARN += $(CNOWARN_UNINIT)
92 92 CERRWARN += -_gcc=-Wno-unused-variable
93 93 CERRWARN += -_gcc=-Wno-unused-value
94 94 CERRWARN += -_gcc=-Wno-unused-label
95 95 CERRWARN += -_gcc=-Wno-unused-function
96 96 CERRWARN += -_gcc=-Wno-clobbered
97 97 CERRWARN += -_gcc=-Wno-empty-body
98 98 CERRWARN += -_gcc=-Wno-extra
99 99 CERRWARN += -_gcc=-Wno-address
100 100
101 101 # not linted
102 102 SMATCH=off
103 103
104 104 all:= TARGET= all
105 105 install:= TARGET= install
106 106 clean:= TARGET= clean
107 107 clobber:= TARGET= clobber
108 108 lint:= TARGET= lint
109 109 strip:= TARGET= strip
110 110 catalog:= TARGET= catalog
111 111 _msg:= TARGET= catalog
112 112
113 113 ROOTLIBLPPROG= $(PROG:%=$(ROOTLIBLP)/%)
114 114 ROOTBINLPPROG= $(PROG:%=$(ROOTBINLP)/%)
115 115 ROOTETCLPPROG= $(PROG:%=$(ROOTETCLP)/%)
116 116 ROOTUSRUCBPROG= $(PROG:%=$(ROOTUSRUCB)/%)
117 117 ROOTLIBLPPOSTPROG= $(PROG:%=$(ROOTLIBLPPOST)/%)
118 118 ROOTLIBLPLOCLPROG= $(PROG:%=$(ROOTLIBLPLOCL)/%)
119 119
120 120 $(ROOTLIBLP)/% \
121 121 $(ROOTBINLP)/% \
122 122 $(ROOTETCLP)/% \
123 123 $(ROOTUSRUCB)/% \
124 124 $(ROOTLIBLPPOST)/% $(ROOTLIBLPLOCL)/%: %
125 125 $(INS.file)
↓ open down ↓ |
24 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX