Print this page
XXX Remove nawk(1)
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/uts/sun4u/Makefile.rules
+++ new/usr/src/uts/sun4u/Makefile.rules
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 # This Makefile defines the build rules for the directory uts/sun4u
27 27 # and its children. These are the source files which sun4u
28 28 # "implementation architecture" dependent.
29 29 #
30 30 # The following two-level ordering must be maintained in this file.
31 31 # Lines are sorted first in order of decreasing specificity based on
32 32 # the first directory component. That is, sun4u rules come before
33 33 # sparc rules come before common rules.
34 34 #
35 35 # Lines whose initial directory components are equal are sorted
36 36 # alphabetically by the remaining components.
37 37
38 38 #
39 39 # Section 1a: C object build rules
40 40 #
41 41 $(OBJS_DIR)/%.o: $(UTSBASE)/sun4u/cpu/%.c
42 42 $(COMPILE.c) -o $@ $<
43 43 $(CTFCONVERT_O)
44 44
45 45 $(OBJS_DIR)/%.o: $(UTSBASE)/sun4u/cpu/%.s
46 46 $(COMPILE.s) -o $@ $<
47 47
48 48 #
49 49 # This rule for io/ppm/%.c needs to come before the io/%.c rule so that
50 50 # the sun4u/ppm driver pulls in io/ppm/ppm.c instead of io/ppm.c.
51 51 # Making an explicit rule to build ppm.o doesn't work because it breaks
52 52 # the build of excalibur/xcalppm
53 53 #
54 54 $(OBJS_DIR)/%.o: $(UTSBASE)/sun4u/io/ppm/%.c
55 55 $(COMPILE.c) -o $@ $<
56 56 $(CTFCONVERT_O)
57 57
58 58 $(OBJS_DIR)/%.o: $(UTSBASE)/common/io/ppm/%.c
59 59 $(COMPILE.c) -o $@ $<
60 60 $(CTFCONVERT_O)
61 61
62 62 $(OBJS_DIR)/%.o: $(UTSBASE)/sun4u/io/%.s
63 63 $(COMPILE.s) -o $@ $<
64 64
65 65 $(OBJS_DIR)/%.o: $(UTSBASE)/sun4u/io/%.c
66 66 $(COMPILE.c) -o $@ $<
67 67 $(CTFCONVERT_O)
68 68
69 69 $(OBJS_DIR)/%.o: $(UTSBASE)/sun4u/io/i2c/clients/%.c
70 70 $(COMPILE.c) -o $@ $<
71 71 $(CTFCONVERT_O)
72 72
73 73 $(OBJS_DIR)/%.o: $(UTSBASE)/sun4u/io/i2c/misc/%.c
74 74 $(COMPILE.c) -o $@ $<
75 75 $(CTFCONVERT_O)
76 76
77 77 $(OBJS_DIR)/%.o: $(UTSBASE)/sun4u/io/i2c/nexus/%.c
78 78 $(COMPILE.c) -o $@ $<
79 79 $(CTFCONVERT_O)
80 80
81 81 $(OBJS_DIR)/%.o: $(UTSBASE)/sun4u/io/pci/%.c
82 82 $(COMPILE.c) -o $@ $<
83 83 $(CTFCONVERT_O)
84 84
85 85 $(OBJS_DIR)/%.o: $(UTSBASE)/sun4u/io/pci/%.s
86 86 $(COMPILE.s) -o $@ $<
87 87
88 88 $(OBJS_DIR)/%.o: $(UTSBASE)/sun4u/io/px/%.c
89 89 $(COMPILE.c) -o $@ $<
90 90 $(CTFCONVERT_O)
91 91
92 92 $(OBJS_DIR)/%.o: $(UTSBASE)/sun4u/io/px/%.s
93 93 $(COMPILE.s) -o $@ $<
94 94
95 95 $(OBJS_DIR)/%.o: $(UTSBASE)/sun4u/io/pciex/%.c
96 96 $(COMPILE.c) -o $@ $<
97 97 $(CTFCONVERT_O)
98 98
99 99 $(OBJS_DIR)/%.o: $(UTSBASE)/sun4u/io/pciex/%.s
100 100 $(COMPILE.s) -o $@ $<
101 101
102 102 $(OBJS_DIR)/%.o: $(UTSBASE)/sun4u/ml/%.s
103 103 $(COMPILE.s) -o $@ $<
104 104
105 105 $(OBJS_DIR)/%.o: $(UTSBASE)/sun4u/os/%.c
106 106 $(COMPILE.c) -o $@ $<
107 107 $(CTFCONVERT_O)
108 108
109 109 $(OBJS_DIR)/%.o: $(UTSBASE)/sun4u/pcbe/%.c
110 110 $(COMPILE.c) -o $@ $<
111 111 $(CTFCONVERT_O)
112 112
113 113 $(OBJS_DIR)/%.o: $(UTSBASE)/sun4/brand/sn1/%.s
114 114 $(COMPILE.s) -o $@ $<
115 115
116 116 $(OBJS_DIR)/%.o: $(UTSBASE)/sun4/brand/solaris10/%.s
117 117 $(COMPILE.s) -o $@ $<
118 118
119 119 $(OBJS_DIR)/%.o: $(UTSBASE)/sun4u/vm/%.c
120 120 $(COMPILE.c) -o $@ $<
121 121 $(CTFCONVERT_O)
122 122
123 123 $(OBJS_DIR)/%.o: $(UTSBASE)/sun4u/vm/%.s
124 124 $(COMPILE.s) -o $@ $<
125 125
126 126 $(OBJS_DIR)/%.o: $(UTSBASE)/sfmmu/ml/%.s
127 127 $(COMPILE.s) -o $@ $<
128 128
129 129 $(OBJS_DIR)/%.o: $(UTSBASE)/sfmmu/vm/%.c
130 130 $(COMPILE.c) -o $@ $<
131 131 $(CTFCONVERT_O)
132 132
133 133 $(OBJS_DIR)/%.o: $(UTSBASE)/sparc/os/%.c
134 134 $(COMPILE.c) -o $@ $<
135 135 $(CTFCONVERT_O)
136 136
137 137 $(OBJS_DIR)/%.o: $(UTSBASE)/common/os/%.c
138 138 $(COMPILE.c) -o $@ $<
139 139 $(CTFCONVERT_O)
140 140
141 141 $(OBJS_DIR)/%.o: $(SRC)/common/bignum/sun4u/%.s
142 142 $(COMPILE.s) -o $@ $<
143 143
144 144 $(OBJS_DIR)/%.o: $(SRC)/common/crypto/aes/%.c
145 145 $(COMPILE.c) -o $@ $<
146 146 $(CTFCONVERT_O)
147 147
148 148 $(OBJS_DIR)/%.o: $(SRC)/common/crypto/arcfour/%.c
149 149 $(COMPILE.c) -o $@ $<
150 150 $(CTFCONVERT_O)
151 151
152 152 $(OBJS_DIR)/%.o: $(SRC)/common/crypto/des/%.c
153 153 $(COMPILE.c) -o $@ $<
154 154 $(CTFCONVERT_O)
155 155
156 156 $(OBJS_DIR)/%.o: $(SRC)/common/crypto/aes/sun4u/%.s
157 157 $(COMPILE.s) -o $@ $<
158 158
159 159 $(OBJS_DIR)/%.o: $(SRC)/common/crypto/arcfour/sun4u/%.s
160 160 $(COMPILE.s) -o $@ $<
161 161
162 162 $(OBJS_DIR)/%.o: $(SRC)/common/crypto/des/sun4u/%.s
↓ open down ↓ |
162 lines elided |
↑ open up ↑ |
163 163 $(COMPILE.s) -o $@ $<
164 164
165 165 $(OBJS_DIR)/%.o: $(SRC)/common/crypto/sha1/sparc/sun4u/%.s
166 166 $(COMPILE.s) -o $@ $<
167 167
168 168 $(OBJS_DIR)/%.o: $(SRC)/common/atomic/sparcv9/%.s
169 169 $(COMPILE.s) -o $@ $<
170 170
171 171 $(OBJS_DIR)/dtracestubs.s: $(UNIX_O) $(LIBS)
172 172 $(NM) -u $(UNIX_O) $(LIBS) | $(GREP) __dtrace_probe_ | $(SORT) | \
173 - $(UNIQ) | $(NAWK) '{ \
173 + $(UNIQ) | $(AWK) '{ \
174 174 printf("\t.global %s\n\t.type %s, #function\n%s:\n", \
175 175 $$1, $$1, $$1); }' > $(OBJS_DIR)/dtracestubs.s
176 176
177 177 $(DTRACESTUBS): $(DTRACESTUBS_O)
178 178 $(BUILD.SO) $(DTRACESTUBS_O)
179 179
180 180 #
181 181 # Section 1b: Lint `object' build rules
182 182 #
183 183 $(LINTS_DIR)/%.ln: $(UTSBASE)/sun4u/cpu/%.c
184 184 @($(LHEAD) $(LINT.c) $< $(LTAIL))
185 185
186 186 $(LINTS_DIR)/%.ln: $(UTSBASE)/sun4u/cpu/%.s
187 187 @($(LHEAD) $(LINT.s) $< $(LTAIL))
188 188
189 189 $(LINTS_DIR)/%.ln: $(UTSBASE)/sun4u/io/ppm/%.c
190 190 @($(LHEAD) $(LINT.c) $< $(LTAIL))
191 191
192 192 $(LINTS_DIR)/%.ln: $(UTSBASE)/common/io/ppm/%.c
193 193 @($(LHEAD) $(LINT.c) $< $(LTAIL))
194 194
195 195 $(LINTS_DIR)/%.ln: $(UTSBASE)/sun4u/io/%.c
196 196 @($(LHEAD) $(LINT.c) $< $(LTAIL))
197 197
198 198 $(LINTS_DIR)/%.ln: $(UTSBASE)/sun4u/io/%.s
199 199 @($(LHEAD) $(LINT.s) $< $(LTAIL))
200 200
201 201 $(LINTS_DIR)/%.ln: $(UTSBASE)/sun4u/io/i2c/clients/%.c
202 202 @($(LHEAD) $(LINT.c) $< $(LTAIL))
203 203
204 204 $(LINTS_DIR)/%.ln: $(UTSBASE)/sun4u/io/i2c/misc/%.c
205 205 @($(LHEAD) $(LINT.c) $< $(LTAIL))
206 206
207 207 $(LINTS_DIR)/%.ln: $(UTSBASE)/sun4u/io/i2c/nexus/%.c
208 208 @($(LHEAD) $(LINT.c) $< $(LTAIL))
209 209
210 210 $(LINTS_DIR)/%.ln: $(UTSBASE)/sun4u/io/pci/%.c
211 211 @($(LHEAD) $(LINT.c) $< $(LTAIL))
212 212
213 213 $(LINTS_DIR)/%.ln: $(UTSBASE)/sun4u/io/pci/%.s
214 214 @($(LHEAD) $(LINT.s) $< $(LTAIL))
215 215
216 216 $(LINTS_DIR)/%.ln: $(UTSBASE)/sun4u/io/px/%.c
217 217 @($(LHEAD) $(LINT.c) $< $(LTAIL))
218 218
219 219 $(LINTS_DIR)/%.ln: $(UTSBASE)/sun4u/io/px/%.s
220 220 @($(LHEAD) $(LINT.s) $< $(LTAIL))
221 221
222 222 $(LINTS_DIR)/%.ln: $(UTSBASE)/sun4u/io/pciex/%.c
223 223 @($(LHEAD) $(LINT.c) $< $(LTAIL))
224 224
225 225 $(LINTS_DIR)/%.ln: $(UTSBASE)/sun4u/io/pciex/%.s
226 226 @($(LHEAD) $(LINT.s) $< $(LTAIL))
227 227
228 228 $(LINTS_DIR)/%.ln: $(UTSBASE)/sun4u/ml/%.s
229 229 @($(LHEAD) $(LINT.s) $< $(LTAIL))
230 230
231 231 $(LINTS_DIR)/%.ln: $(UTSBASE)/sun4u/os/%.c
232 232 @($(LHEAD) $(LINT.c) $< $(LTAIL))
233 233
234 234 $(LINTS_DIR)/%.ln: $(UTSBASE)/sun4u/pcbe/%.c
235 235 @($(LHEAD) $(LINT.c) $< $(LTAIL))
236 236
237 237 $(LINTS_DIR)/%.ln: $(UTSBASE)/sun4/brand/sn1/%.s
238 238 @($(LHEAD) $(LINT.s) $< $(LTAIL))
239 239
240 240 $(LINTS_DIR)/%.ln: $(UTSBASE)/sun4/brand/solaris10/%.s
241 241 @($(LHEAD) $(LINT.s) $< $(LTAIL))
242 242
243 243 $(LINTS_DIR)/%.ln: $(UTSBASE)/sun4u/vm/%.c
244 244 @($(LHEAD) $(LINT.c) $< $(LTAIL))
245 245
246 246 $(LINTS_DIR)/%.ln: $(UTSBASE)/sun4u/vm/%.s
247 247 @($(LHEAD) $(LINT.s) $< $(LTAIL))
248 248
249 249 $(LINTS_DIR)/%.ln: $(UTSBASE)/sfmmu/ml/%.s
250 250 @($(LHEAD) $(LINT.s) $< $(LTAIL))
251 251
252 252 $(LINTS_DIR)/%.ln: $(UTSBASE)/sfmmu/vm/%.c
253 253 @($(LHEAD) $(LINT.c) $< $(LTAIL))
254 254
255 255 $(LINTS_DIR)/%.ln: $(UTSBASE)/sparc/os/%.c
256 256 @($(LHEAD) $(LINT.c) $< $(LTAIL))
257 257
258 258 $(LINTS_DIR)/%.ln: $(UTSBASE)/common/os/%.c
259 259 @($(LHEAD) $(LINT.c) $< $(LTAIL))
260 260
261 261 $(LINTS_DIR)/%.ln: $(SRC)/common/bignum/sun4u/%.s
262 262 @($(LHEAD) $(LINT.s) $< $(LTAIL))
263 263
264 264 $(LINTS_DIR)/%.ln: $(SRC)/common/crypto/aes/%.c
265 265 @($(LHEAD) $(LINT.c) $< $(LTAIL))
266 266
267 267 $(LINTS_DIR)/%.ln: $(SRC)/common/crypto/arcfour/%.c
268 268 @($(LHEAD) $(LINT.c) $< $(LTAIL))
269 269
270 270 $(LINTS_DIR)/%.ln: $(SRC)/common/crypto/des/%.c
271 271 @($(LHEAD) $(LINT.c) $< $(LTAIL))
272 272
273 273 $(LINTS_DIR)/%.ln: $(SRC)/common/crypto/aes/sun4u/%.s
274 274 @($(LHEAD) $(LINT.s) $< $(LTAIL))
275 275
276 276 $(LINTS_DIR)/%.ln: $(SRC)/common/crypto/arcfour/sun4u/%.s
277 277 @($(LHEAD) $(LINT.s) $< $(LTAIL))
278 278
279 279 $(LINTS_DIR)/%.ln: $(SRC)/common/crypto/des/sun4u/%.s
280 280 @($(LHEAD) $(LINT.s) $< $(LTAIL))
281 281
282 282 $(LINTS_DIR)/%.ln: $(SRC)/common/crypto/sha1/sparc/sun4u/%.s
283 283 @($(LHEAD) $(LINT.s) $< $(LTAIL))
284 284
285 285 $(LINTS_DIR)/%.ln: $(SRC)/common/atomic/%.c
286 286 @($(LHEAD) $(LINT.c) $< $(LTAIL))
↓ open down ↓ |
103 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX