Print this page
11528 Makefile.noget can get gone
11529 Use -Wno-maybe-initialized
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/cmd/priocntl/Makefile
+++ new/usr/src/cmd/priocntl/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
26 26 PROG= priocntl
27 27
28 28 PRIOCNTLOBJ= $(PROG).o subr.o
↓ open down ↓ |
28 lines elided |
↑ open up ↑ |
29 29
30 30 PRIOCNTLSRC= $(PRIOCNTLOBJ:%.o=%.c)
31 31 OBJS= $(PRIOCNTLOBJ) rt$(PROG).o ts$(PROG).o ia$(PROG).o fss$(PROG).o \
32 32 fx$(PROG).o sdc$(PROG).o
33 33 SRCS= $(OBJ:%.o=%.c)
34 34
35 35 include ../Makefile.cmd
36 36
37 37 LDLIBS += -lcontract
38 38 CERRWARN += -_gcc=-Wno-parentheses
39 -CERRWARN += -_gcc=-Wno-uninitialized
39 +CERRWARN += $(CNOWARN_UNINIT)
40 40
41 41 CLASSD = $(ROOTLIB)/class
42 42 RTD = $(CLASSD)/RT
43 43 SDCD = $(CLASSD)/SDC
44 44 TSD = $(CLASSD)/TS
45 45 IAD = $(CLASSD)/IA
46 46 FSSD = $(CLASSD)/FSS
47 47 FXD = $(CLASSD)/FX
48 48 DIRS = $(CLASSD) $(RTD) $(SDCD) $(TSD) $(IAD) $(FSSD) $(FXD)
49 49
50 50 RTPROG = RT$(PROG)
51 51 SDCPROG = SDC$(PROG)
52 52 TSPROG = TS$(PROG)
53 53 IAPROG = IA$(PROG)
54 54 FSSPROG = FSS$(PROG)
55 55 FXPROG = FX$(PROG)
56 56
57 57 ROOTRTPROG = $(RTD)/$(RTPROG)
58 58 ROOTSDCPROG = $(SDCD)/$(SDCPROG)
59 59 ROOTTSPROG = $(TSD)/$(TSPROG)
60 60 ROOTIAPROG = $(IAD)/$(IAPROG)
61 61 ROOTFSSPROG = $(FSSD)/$(FSSPROG)
62 62 ROOTFXPROG = $(FXD)/$(FXPROG)
63 63
64 64 $(ROOTUSRSBINPROG) := FILEMODE = 04555
65 65 $(DIRS) := FILEMODE = 0775
66 66 CLOBBERFILES += $(RTPROG) $(SDCPROG) $(TSPROG) $(IAPROG) $(FSSPROG) $(FXPROG)
67 67
68 68 # installation rules
69 69 $(RTD)/% : %
70 70 $(INS.file)
71 71
72 72 $(SDCD)/% : %
73 73 $(INS.file)
74 74
75 75 $(TSD)/% : %
76 76 $(INS.file)
77 77
78 78 $(IAD)/% : %
79 79 $(INS.file)
80 80
81 81 $(FSSD)/% : %
82 82 $(INS.file)
83 83
84 84 $(FXD)/% : %
85 85 $(INS.file)
86 86
87 87 .KEEP_STATE:
88 88
89 89 all: $(PROG) $(RTPROG) $(SDCPROG) $(TSPROG) $(IAPROG) $(FSSPROG) $(FXPROG)
90 90
91 91 $(PROG): $(PRIOCNTLOBJ)
92 92 $(LINK.c) $(PRIOCNTLOBJ) -o $@ $(LDLIBS)
93 93 $(POST_PROCESS)
94 94
95 95 $(RTPROG): rt$(PRIOCNTLOBJ)
96 96 $(LINK.c) rt$(PRIOCNTLOBJ) -o $@ $(LDLIBS)
97 97 $(POST_PROCESS)
98 98
99 99 $(SDCPROG): sdc$(PRIOCNTLOBJ)
100 100 $(LINK.c) sdc$(PRIOCNTLOBJ) -o $@ $(LDLIBS)
101 101 $(POST_PROCESS)
102 102
103 103 $(TSPROG): ts$(PRIOCNTLOBJ)
104 104 $(LINK.c) ts$(PRIOCNTLOBJ) -o $@ $(LDLIBS)
105 105 $(POST_PROCESS)
106 106
107 107 $(IAPROG): ia$(PRIOCNTLOBJ)
108 108 $(LINK.c) ia$(PRIOCNTLOBJ) -o $@ $(LDLIBS)
109 109 $(POST_PROCESS)
110 110
111 111 $(FSSPROG): fss$(PRIOCNTLOBJ)
112 112 $(LINK.c) fss$(PRIOCNTLOBJ) -o $@ $(LDLIBS)
113 113 $(POST_PROCESS)
114 114
115 115 $(FXPROG): fx$(PRIOCNTLOBJ)
116 116 $(LINK.c) fx$(PRIOCNTLOBJ) -o $@ $(LDLIBS)
117 117 $(POST_PROCESS)
118 118
119 119 install: all $(DIRS) \
120 120 $(ROOTPROG) \
121 121 $(ROOTRTPROG) \
122 122 $(ROOTSDCPROG) \
123 123 $(ROOTTSPROG) \
124 124 $(ROOTIAPROG) \
125 125 $(ROOTFSSPROG) \
126 126 $(ROOTFXPROG)
127 127
128 128 $(DIRS):
129 129 $(INS.dir)
130 130
131 131 clean:
132 132 $(RM) $(OBJS)
133 133
134 134 lint:
135 135 $(LINT.c) $(PRIOCNTLSRC) $(LDLIBS)
136 136 $(LINT.c) rt$(PRIOCNTLSRC) $(LDLIBS)
137 137 $(LINT.c) sdc$(PRIOCNTLSRC) $(LDLIBS)
138 138 $(LINT.c) ts$(PRIOCNTLSRC) $(LDLIBS)
139 139 $(LINT.c) ia$(PRIOCNTLSRC) $(LDLIBS)
140 140 $(LINT.c) fss$(PRIOCNTLSRC) $(LDLIBS)
141 141 $(LINT.c) fx$(PRIOCNTLSRC) $(LDLIBS)
142 142
143 143 include ../Makefile.targ
↓ open down ↓ |
94 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX