Print this page
XXX Remove nawk(1)
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/uts/i86pc/Makefile.rules
+++ new/usr/src/uts/i86pc/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 (c) 1992, 2010, Oracle and/or its affiliates. All rights reserved.
24 24 #
25 25
26 26 # This Makefile defines the build rules for the directory uts/i86pc
27 27 # and its children. These are the source files which are i86pc
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, i86pc rules come before
33 33 # intel 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)/i86pc/conf/%.c
42 42 $(COMPILE.c) -o $@ $<
43 43 $(CTFCONVERT_O)
44 44
45 45 $(OBJS_DIR)/%.o: $(UTSBASE)/i86pc/cpu/amd_opteron/%.c
46 46 $(COMPILE.c) -o $@ $<
47 47 $(CTFCONVERT_O)
48 48
49 49 $(OBJS_DIR)/%.o: $(UTSBASE)/i86pc/cpu/authenticamd/%.c
50 50 $(COMPILE.c) -o $@ $<
51 51 $(CTFCONVERT_O)
52 52
53 53 $(OBJS_DIR)/%.o: $(UTSBASE)/i86pc/cpu/generic_cpu/%.c
54 54 $(COMPILE.c) -o $@ $<
55 55 $(CTFCONVERT_O)
56 56
57 57 $(OBJS_DIR)/%.o: $(UTSBASE)/i86pc/cpu/genuineintel/%.c
58 58 $(COMPILE.c) -o $@ $<
59 59 $(CTFCONVERT_O)
60 60
61 61 $(OBJS_DIR)/%.o: $(UTSBASE)/i86pc/io/%.c
62 62 $(COMPILE.c) -o $@ $<
63 63 $(CTFCONVERT_O)
64 64
65 65 $(OBJS_DIR)/%.o: $(UTSBASE)/i86pc/io/acpi_drv/%.c
66 66 $(COMPILE.c) -o $@ $<
67 67 $(CTFCONVERT_O)
68 68
69 69 $(OBJS_DIR)/%.o: $(UTSBASE)/i86pc/io/fipe/%.c
70 70 $(COMPILE.c) -o $@ $<
71 71 $(CTFCONVERT_O)
72 72
73 73 $(OBJS_DIR)/%.o: $(UTSBASE)/i86pc/io/acpi/acpidev/%.c
74 74 $(COMPILE.c) -o $@ $<
75 75 $(CTFCONVERT_O)
76 76
77 77 $(OBJS_DIR)/%.o: $(UTSBASE)/i86pc/io/acpi/acpinex/%.c
78 78 $(COMPILE.c) -o $@ $<
79 79 $(CTFCONVERT_O)
80 80
81 81 SBD_IOCTL = $(UTSBASE)/i86pc/sys/sbd_ioctl.h
82 82 DRMACH_IO = $(UTSBASE)/i86pc/io/acpi/drmach_acpi
83 83 DRMACH_GENERR = $(DRMACH_IO)/sbdgenerr
84 84 DR_IO = $(UTSBASE)/i86pc/io/dr
85 85 DR_GENERR = $(DR_IO)/sbdgenerr
86 86
87 87 $(DRMACH_GENERR): $(DR_IO)/sbdgenerr.pl
88 88 $(RM) $@
89 89 $(CAT) $(DR_IO)/sbdgenerr.pl > $@
90 90 $(CHMOD) +x $@
91 91
92 92 $(DRMACH_IO)/drmach_err.c: $(DRMACH_GENERR) $(SBD_IOCTL)
93 93 $(RM) $@
94 94 $(DRMACH_GENERR) EX86 < $(SBD_IOCTL) > $(DRMACH_IO)/drmach_err.c
95 95
96 96 $(OBJS_DIR)/%.o: $(UTSBASE)/i86pc/io/acpi/drmach_acpi/%.c
97 97 $(COMPILE.c) -o $@ $<
98 98 $(CTFCONVERT_O)
99 99
100 100 $(OBJS_DIR)/%.o: $(UTSBASE)/i86pc/io/amd_iommu/%.c
101 101 $(COMPILE.c) -o $@ $<
102 102 $(CTFCONVERT_O)
103 103
104 104 $(DR_GENERR): $(DR_IO)/sbdgenerr.pl
105 105 $(RM) $@
106 106 $(CAT) $(DR_IO)/sbdgenerr.pl > $@
107 107 $(CHMOD) +x $@
108 108
109 109 $(DR_IO)/dr_err.c: $(DR_GENERR) $(SBD_IOCTL)
110 110 $(RM) $@
111 111 $(DR_GENERR) ESBD < $(SBD_IOCTL) > $(DR_IO)/dr_err.c
112 112
113 113 $(OBJS_DIR)/%.o: $(UTSBASE)/i86pc/io/dr/%.c
114 114 $(COMPILE.c) -o $@ $<
115 115 $(CTFCONVERT_O)
116 116
117 117 $(OBJS_DIR)/%.o: $(UTSBASE)/i86pc/io/ioat/%.c
118 118 $(COMPILE.c) -o $@ $<
119 119 $(CTFCONVERT_O)
120 120
121 121 $(OBJS_DIR)/%.o: $(UTSBASE)/i86pc/io/pci/%.c
122 122 $(COMPILE.c) -o $@ $<
123 123 $(CTFCONVERT_O)
124 124
125 125 $(OBJS_DIR)/%.o: $(UTSBASE)/i86pc/io/pciex/%.c
126 126 $(COMPILE.c) -o $@ $<
127 127 $(CTFCONVERT_O)
128 128
129 129 $(OBJS_DIR)/%.o: $(UTSBASE)/intel/io/pciex/hotplug/%.c
130 130 $(COMPILE.c) -o $@ $<
131 131 $(CTFCONVERT_O)
132 132
133 133 $(OBJS_DIR)/%.o: $(UTSBASE)/i86pc/io/pcplusmp/%.c
134 134 $(COMPILE.c) -o $@ $<
135 135 $(CTFCONVERT_O)
136 136
137 137 $(OBJS_DIR)/%.o: $(UTSBASE)/i86pc/io/pcplusmp/%.s
138 138 $(COMPILE.s) -o $@ $<
139 139
140 140 $(OBJS_DIR)/%.o: $(UTSBASE)/i86pc/io/apix/%.c
141 141 $(COMPILE.c) -o $@ $<
142 142 $(CTFCONVERT_O)
143 143
144 144 $(OBJS_DIR)/%.o: $(UTSBASE)/i86pc/io/ppm/%.c
145 145 $(COMPILE.c) -o $@ $<
146 146 $(CTFCONVERT_O)
147 147
148 148 $(OBJS_DIR)/%.o: $(UTSBASE)/i86pc/io/ppm/%.s
149 149 $(COMPILE.s) -o $@ $<
150 150
151 151 $(OBJS_DIR)/%.o: $(UTSBASE)/i86pc/io/psm/%.c
152 152 $(COMPILE.c) -o $@ $<
153 153 $(CTFCONVERT_O)
154 154
155 155 $(OBJS_DIR)/%.o: $(UTSBASE)/i86pc/io/psm/%.s
156 156 $(COMPILE.s) -o $@ $<
157 157
158 158 $(OBJS_DIR)/%.o: $(UTSBASE)/i86pc/io/tzmon/%.c
159 159 $(COMPILE.c) -o $@ $<
160 160 $(CTFCONVERT_O)
161 161
162 162 $(OBJS_DIR)/%.o: $(UTSBASE)/i86pc/ml/%.s
163 163 $(COMPILE.s) -o $@ $<
164 164
165 165 $(OBJS_DIR)/%.o: $(UTSBASE)/i86pc/os/%.c
166 166 $(COMPILE.c) -o $@ $<
167 167 $(CTFCONVERT_O)
168 168
169 169 $(OBJS_DIR)/%.o: $(UTSBASE)/i86pc/os/cpupm/%.c
170 170 $(COMPILE.c) -o $@ $<
171 171 $(CTFCONVERT_O)
172 172
173 173 $(OBJS_DIR)/%.o: $(UTSBASE)/i86pc/boot/%.c
174 174 $(COMPILE.c) -o $@ $<
175 175 $(CTFCONVERT_O)
176 176
177 177 $(OBJS_DIR)/%.o: $(UTSBASE)/i86pc/vm/%.c
178 178 $(COMPILE.c) -o $@ $<
179 179 $(CTFCONVERT_O)
180 180
181 181 $(OBJS_DIR)/%.o: $(UTSBASE)/common/io/%.c
182 182 $(COMPILE.c) -o $@ $<
183 183 $(CTFCONVERT_O)
184 184
185 185 $(OBJS_DIR)/%.o: $(UTSBASE)/common/io/ppm/%.c
186 186 $(COMPILE.c) -o $@ $<
187 187 $(CTFCONVERT_O)
188 188
189 189 $(OBJS_DIR)/%.o: $(UTSBASE)/common/io/pciex/%.c
190 190 $(COMPILE.c) -o $@ $<
191 191 $(CTFCONVERT_O)
192 192
193 193 $(OBJS_DIR)/%.o: $(UTSBASE)/common/os/%.c
194 194 $(COMPILE.c) -o $@ $<
195 195 $(CTFCONVERT_O)
196 196
197 197 $(OBJS_DIR)/%.o: $(SRC)/common/dis/i386/%.c
198 198 $(COMPILE.c) -o $@ $<
199 199 $(CTFCONVERT_O)
200 200
201 201 $(OBJS_DIR)/%.o: $(UTSBASE)/i86pc/io/gfx_private/%.c
202 202 $(COMPILE.c) -o $@ $<
203 203 $(CTFCONVERT_O)
204 204
205 205 $(OBJS_DIR)/%.o: $(UTSBASE)/i86pc/io/xsvc/%.c
206 206 $(COMPILE.c) -o $@ $<
207 207 $(CTFCONVERT_O)
208 208
209 209 $(OBJS_DIR)/%.o: $(UTSBASE)/common/xen/os/%.c
210 210 $(COMPILE.c) -o $@ $<
211 211 $(CTFCONVERT_O)
212 212
213 213 #
214 214 # dboot stuff is always 32 bit, linked to run with phys_addr == virt_addr
215 215 #
216 216 DBOOT_OBJS_DIR = dboot/$(OBJS_DIR)
217 217 DBOOT_MACH_32 = -D_BOOT_TARGET_i386
218 218 DBOOT_MACH_64 = -D_BOOT_TARGET_amd64
219 219 DBOOT_DEFS = -D_BOOT $(DBOOT_MACH_$(CLASS))
220 220 DBOOT_DEFS += -D_MACHDEP -D_KMEMUSER -U_KERNEL -D_I32LPx
221 221 DBOOT_FLAGS = $(CCVERBOSE) $(CERRWARN) $(CCNOAUTOINLINE)
222 222
223 223 DBOOT_CC_INCL = -I$(SRC)/common $(INCLUDE_PATH)
224 224 DBOOT_AS_INCL = $(AS_INC_PATH)
225 225
226 226 DBOOT_AS = $(ONBLD_TOOLS)/bin/$(MACH)/aw
227 227
228 228 DBOOT_LINTS_DIR = $(DBOOT_OBJS_DIR)
229 229 DBOOT_LINTFLAGS_i86pc = $(LINTFLAGS_i386_32) $(LINTTAGS_i386_32)
230 230
231 231 DBOOT_LINTFLAGS = $(DBOOT_LINTFLAGS_$(PLATFORM)) $(LINTTAGS) $(C99LMODE) \
232 232 $(CPPFLAGS) $(DBOOT_DEFS)
233 233 DBOOT_LOCAL_LINTFLAGS = -c -dirout=$(DBOOT_LINTS_DIR) -I$(SRC)/common \
234 234 $(DBOOT_LINTFLAGS) $(DBOOT_LINTTAGS)
235 235
236 236 $(DBOOT_OBJS_DIR)/%.o: $(UTSBASE)/i86pc/boot/%.c
237 237 $(i386_CC) $(DBOOT_FLAGS) -O $(DBOOT_DEFS) $(DBOOT_CC_INCL) -c -o $@ $<
238 238
239 239 $(DBOOT_OBJS_DIR)/%.o: $(UTSBASE)/i86pc/dboot/%.c
240 240 $(i386_CC) $(DBOOT_FLAGS) -O $(DBOOT_DEFS) $(DBOOT_CC_INCL) -c -o $@ $<
241 241
242 242 $(DBOOT_OBJS_DIR)/%.o: $(UTSBASE)/intel/ia32/%.s
243 243 $(DBOOT_AS) -P -D_ASM $(DBOOT_DEFS) $(DBOOT_AS_INCL) -o $@ $<
244 244
245 245 $(DBOOT_OBJS_DIR)/%.o: $(COMMONBASE)/crypto/sha1/%.c
246 246 $(i386_CC) $(CERRWARN) -O $(DBOOT_DEFS) $(DBOOT_CC_INCL) -c -o $@ $<
247 247
248 248 $(DBOOT_OBJS_DIR)/%.o: $(COMMONBASE)/util/%.c
249 249 $(i386_CC) $(DBOOT_FLAGS) -O $(DBOOT_DEFS) $(DBOOT_CC_INCL) -c -o $@ $<
250 250
251 251 $(DBOOT_OBJS_DIR)/%.o: $(COMMONBASE)/util/i386/%.s
252 252 $(DBOOT_AS) -P -D_ASM $(DBOOT_DEFS) $(DBOOT_AS_INCL) -o $@ $<
253 253
254 254 $(DBOOT_OBJS_DIR)/%.o: $(UTSBASE)/i86pc/dboot/%.s
255 255 $(DBOOT_AS) -P -D_ASM $(DBOOT_DEFS) $(DBOOT_AS_INCL) -o $@ $<
256 256
257 257 #
258 258 # Stuff to build bios_call.o for the kernel.
259 259 #
260 260 MAPFILE_BIOS = $(UTSBASE)/i86pc/conf/Mapfile.bios
261 261 $(OBJS_DIR)/bios_call.o: $(UTSBASE)/i86pc/ml/bios_call_src.s
262 262 $(COMPILE.s) -o $(OBJS_DIR)/bios_call_src.o \
263 263 $(UTSBASE)/i86pc/ml/bios_call_src.s
264 264 $(LD) -dn -M $(MAPFILE_BIOS) \
265 265 -o $(OBJS_DIR)/bios_call_src $(OBJS_DIR)/bios_call_src.o
266 266 @echo " .data" > $(OBJS_DIR)/bios_call.s
267 267 @echo " .globl bios_image" >> $(OBJS_DIR)/bios_call.s
268 268 @echo "bios_image:" >> $(OBJS_DIR)/bios_call.s
269 269 $(ELFEXTRACT) $(OBJS_DIR)/bios_call_src >> $(OBJS_DIR)/bios_call.s
270 270 @echo " .align 4" >> $(OBJS_DIR)/bios_call.s
271 271 @echo " .globl bios_size" >> $(OBJS_DIR)/bios_call.s
272 272 @echo "bios_size:" >> $(OBJS_DIR)/bios_call.s
273 273 @echo " .long . - bios_image" >> $(OBJS_DIR)/bios_call.s
274 274 $(COMPILE.s) -o $@ $(OBJS_DIR)/bios_call.s
275 275
276 276 #
277 277 # Stuff to build fb_swtch.o for the kernel.
278 278 #
279 279 MAPFILE_FBSWTCH = $(UTSBASE)/i86pc/conf/Mapfile.fb_swtch
280 280 $(OBJS_DIR)/fb_swtch.o: $(UTSBASE)/i86pc/ml/fb_swtch_src.s
281 281 $(COMPILE.s) -o $(OBJS_DIR)/fb_swtch_src.o \
282 282 $(UTSBASE)/i86pc/ml/fb_swtch_src.s
283 283 $(LD) -dn -M $(MAPFILE_FBSWTCH) \
284 284 -o $(OBJS_DIR)/fb_swtch_src $(OBJS_DIR)/fb_swtch_src.o
285 285 @echo " .data" > $(OBJS_DIR)/fb_swtch.s
286 286 @echo " .globl fb_swtch_image" >> $(OBJS_DIR)/fb_swtch.s
287 287 @echo "fb_swtch_image:" >> $(OBJS_DIR)/fb_swtch.s
288 288 $(ELFEXTRACT) $(OBJS_DIR)/fb_swtch_src >> $(OBJS_DIR)/fb_swtch.s
289 289 @echo " .align 4" >> $(OBJS_DIR)/fb_swtch.s
290 290 @echo " .globl fb_swtch_size" >> $(OBJS_DIR)/fb_swtch.s
291 291 @echo "fb_swtch_size:" >> $(OBJS_DIR)/fb_swtch.s
292 292 @echo " .long . - fb_swtch_image" >> $(OBJS_DIR)/fb_swtch.s
293 293 $(COMPILE.s) -o $@ $(OBJS_DIR)/fb_swtch.s
294 294
295 295 # ridiculous contortions ---
296 296 ATOMIC_SUBDIR_32 = i386
297 297 ATOMIC_SUBDIR_64 = amd64
298 298 ATOMIC_SUBDIR = $(ATOMIC_SUBDIR_$(CLASS))
↓ open down ↓ |
298 lines elided |
↑ open up ↑ |
299 299
300 300 $(OBJS_DIR)/%.o: $(SRC)/common/atomic/$(ATOMIC_SUBDIR)/%.s
301 301 $(COMPILE.s) -o $@ $<
302 302
303 303 #
304 304 # dtrace stubs
305 305 #
306 306
307 307 $(OBJS_DIR)/dtracestubs.s: $(UNIX_O) $(LIBS)
308 308 $(NM) -u $(UNIX_O) $(LIBS) | $(GREP) __dtrace_probe_ | $(SORT) | \
309 - $(UNIQ) | $(NAWK) '{ \
309 + $(UNIQ) | $(AWK) '{ \
310 310 printf("\t.globl %s\n\t.type %s,@function\n%s:\n", \
311 311 $$1, $$1, $$1); }' > $(OBJS_DIR)/dtracestubs.s
312 312
313 313 $(DTRACESTUBS): $(DTRACESTUBS_O)
314 314 $(BUILD.SO) $(DTRACESTUBS_O)
315 315
316 316 #
317 317 # Section 1b: Lint `object' build rules
318 318 #
319 319 $(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/conf/%.c
320 320 @($(LHEAD) $(LINT.c) $< $(LTAIL))
321 321
322 322 $(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/cpu/amd_opteron/%.c
323 323 @($(LHEAD) $(LINT.c) $< $(LTAIL))
324 324
325 325 $(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/cpu/authenticamd/%.c
326 326 @($(LHEAD) $(LINT.c) $< $(LTAIL))
327 327
328 328 $(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/cpu/generic_cpu/%.c
329 329 @($(LHEAD) $(LINT.c) $< $(LTAIL))
330 330
331 331 $(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/cpu/genuineintel/%.c
332 332 @($(LHEAD) $(LINT.c) $< $(LTAIL))
333 333
334 334 $(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/io/%.c
335 335 @($(LHEAD) $(LINT.c) $< $(LTAIL))
336 336
337 337 $(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/io/acpi_drv/%.c
338 338 @($(LHEAD) $(LINT.c) $< $(LTAIL))
339 339
340 340 $(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/io/fipe/%.c
341 341 @($(LHEAD) $(LINT.c) $< $(LTAIL))
342 342
343 343 $(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/io/acpi/acpidev/%.c
344 344 @($(LHEAD) $(LINT.c) $< $(LTAIL))
345 345
346 346 $(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/io/acpi/acpinex/%.c
347 347 @($(LHEAD) $(LINT.c) $< $(LTAIL))
348 348
349 349 $(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/io/acpi/drmach_acpi/%.c
350 350 @($(LHEAD) $(LINT.c) $< $(LTAIL))
351 351
352 352 $(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/io/amd_iommu/%.c
353 353 @($(LHEAD) $(LINT.c) $< $(LTAIL))
354 354
355 355 $(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/io/dr/%.c
356 356 @($(LHEAD) $(LINT.c) $< $(LTAIL))
357 357
358 358 $(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/io/ioat/%.c
359 359 @($(LHEAD) $(LINT.c) $< $(LTAIL))
360 360
361 361 $(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/io/pci/%.c
362 362 @($(LHEAD) $(LINT.c) $< $(LTAIL))
363 363
364 364 $(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/io/pciex/%.c
365 365 @($(LHEAD) $(LINT.c) $< $(LTAIL))
366 366
367 367 $(LINTS_DIR)/%.ln: $(UTSBASE)/intel/io/pciex/hotplug/%.c
368 368 @($(LHEAD) $(LINT.c) $< $(LTAIL))
369 369
370 370 $(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/io/pcplusmp/%.c
371 371 @($(LHEAD) $(LINT.c) $< $(LTAIL))
372 372
373 373 $(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/io/pcplusmp/%.s
374 374 @($(LHEAD) $(LINT.s) $< $(LTAIL))
375 375
376 376 $(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/io/apix/%.c
377 377 @($(LHEAD) $(LINT.c) $< $(LTAIL))
378 378
379 379 $(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/io/apix/%.s
380 380 @($(LHEAD) $(LINT.s) $< $(LTAIL))
381 381
382 382 $(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/io/ppm/%.c
383 383 @($(LHEAD) $(LINT.c) $< $(LTAIL))
384 384
385 385 $(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/io/ppm/%.s
386 386 @($(LHEAD) $(LINT.s) $< $(LTAIL))
387 387
388 388 $(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/io/psm/%.c
389 389 @($(LHEAD) $(LINT.c) $< $(LTAIL))
390 390
391 391 $(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/io/psm/%.s
392 392 @($(LHEAD) $(LINT.s) $< $(LTAIL))
393 393
394 394 $(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/io/tzmon/%.c
395 395 @($(LHEAD) $(LINT.c) $< $(LTAIL))
396 396
397 397 $(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/ml/%.s
398 398 @($(LHEAD) $(LINT.s) $< $(LTAIL))
399 399
400 400 $(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/os/%.c
401 401 @($(LHEAD) $(LINT.c) $< $(LTAIL))
402 402
403 403 $(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/os/cpupm/%.c
404 404 @($(LHEAD) $(LINT.c) $< $(LTAIL))
405 405
406 406 $(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/boot/%.c
407 407 @($(LHEAD) $(LINT.c) $< $(LTAIL))
408 408
409 409 $(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/vm/%.c
410 410 @($(LHEAD) $(LINT.c) $< $(LTAIL))
411 411
412 412 $(LINTS_DIR)/%.ln: $(UTSBASE)/common/io/%.c
413 413 @($(LHEAD) $(LINT.c) $< $(LTAIL))
414 414
415 415 $(LINTS_DIR)/%.ln: $(UTSBASE)/common/io/ppm/%.c
416 416 @($(LHEAD) $(LINT.c) $< $(LTAIL))
417 417
418 418 $(LINTS_DIR)/%.ln: $(UTSBASE)/common/io/pciex/%.c
419 419 @($(LHEAD) $(LINT.c) $< $(LTAIL))
420 420
421 421 $(LINTS_DIR)/%.ln: $(UTSBASE)/common/os/%.c
422 422 @($(LHEAD) $(LINT.c) $< $(LTAIL))
423 423
424 424 $(LINTS_DIR)/%.ln: $(SRC)/common/dis/i386/%.c
425 425 @($(LHEAD) $(LINT.c) $< $(LTAIL))
426 426
427 427 $(LINTS_DIR)/%.ln: $(SRC)/common/atomic/%.c
428 428 @($(LHEAD) $(LINT.c) $< $(LTAIL))
429 429
430 430 $(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/io/gfx_private/%.c
431 431 @($(LHEAD) $(LINT.c) $< $(LTAIL))
432 432
433 433 $(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/io/xsvc/%.c
434 434 @($(LHEAD) $(LINT.c) $< $(LTAIL))
435 435
436 436 $(LINTS_DIR)/%.ln: $(UTSBASE)/common/xen/os/%.c
437 437 @($(LHEAD) $(LINT.c) $< $(LTAIL))
438 438
439 439 #
440 440 # bios call has a funky name change while building
441 441 #
442 442 $(LINTS_DIR)/bios_call.ln: $(UTSBASE)/i86pc/ml/bios_call_src.s
443 443 @($(LHEAD) $(LINT.s) $(UTSBASE)/i86pc/ml/bios_call_src.s $(LTAIL))
444 444 @mv $(LINTS_DIR)/bios_call_src.ln $(LINTS_DIR)/bios_call.ln
445 445
446 446 #
447 447 # So does fb_swtch
448 448 #
449 449 $(LINTS_DIR)/fb_swtch.ln: $(UTSBASE)/i86pc/ml/fb_swtch_src.s
450 450 @($(LHEAD) $(LINT.s) $(UTSBASE)/i86pc/ml/fb_swtch_src.s $(LTAIL))
451 451 @mv $(LINTS_DIR)/fb_swtch_src.ln $(LINTS_DIR)/fb_swtch.ln
452 452
453 453 #
454 454 # dboot always compiles in 32-bit mode, so force lint to be 32-bit mode too.
455 455 #
456 456 $(DBOOT_LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/dboot/%.c
457 457 @($(LHEAD) $(DBOOT_LINT) $(DBOOT_LOCAL_LINTFLAGS) $< $(LTAIL))
458 458
459 459 $(DBOOT_LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/dboot/%.s
460 460 @($(LHEAD) $(DBOOT_LINT) $(DBOOT_LOCAL_LINTFLAGS) $< $(LTAIL))
461 461
462 462 $(DBOOT_LINTS_DIR)/%.ln: $(COMMONBASE)/crypto/sha1/%.c
463 463 @($(LHEAD) $(DBOOT_LINT) $(DBOOT_LOCAL_LINTFLAGS) $< $(LTAIL))
464 464
465 465 $(DBOOT_LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/boot/%.c
466 466 @($(LHEAD) $(DBOOT_LINT) $(DBOOT_LOCAL_LINTFLAGS) $< $(LTAIL))
467 467
468 468 $(DBOOT_LINTS_DIR)/%.ln: $(COMMONBASE)/util/%.c
469 469 @($(LHEAD) $(DBOOT_LINT) $(DBOOT_LOCAL_LINTFLAGS) $< $(LTAIL))
470 470
471 471 $(DBOOT_LINTS_DIR)/%.ln: $(COMMONBASE)/util/i386/%.s
472 472 @($(LHEAD) $(DBOOT_LINT) $(DBOOT_LOCAL_LINTFLAGS) $< $(LTAIL))
↓ open down ↓ |
153 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX