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