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