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