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.
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.
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]
23 # Copyright (c) 1992, 2010, Oracle and/or its affiliates. All rights reserved.
24 # Copyright 2015 Igor Kozhukhov <ikozhukhov@gmail.com>
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.
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.
36 # Lines whose initial directory components are equal are sorted
37 # alphabetically by the remaining components.
40 # Section 1a: C object build rules
42 $(OBJS_DIR)/%.o: $(UTSBASE)/i86pc/conf/%.c
46 $(OBJS_DIR)/%.o: $(UTSBASE)/i86pc/cpu/amd_opteron/%.c
50 $(OBJS_DIR)/%.o: $(UTSBASE)/i86pc/cpu/authenticamd/%.c
54 $(OBJS_DIR)/%.o: $(UTSBASE)/i86pc/cpu/generic_cpu/%.c
58 $(OBJS_DIR)/%.o: $(UTSBASE)/i86pc/cpu/genuineintel/%.c
62 $(OBJS_DIR)/%.o: $(UTSBASE)/i86pc/io/%.c
66 $(OBJS_DIR)/%.o: $(UTSBASE)/i86pc/io/acpi_drv/%.c
70 $(OBJS_DIR)/%.o: $(UTSBASE)/i86pc/io/fipe/%.c
74 $(OBJS_DIR)/%.o: $(UTSBASE)/i86pc/io/acpi/acpidev/%.c
78 $(OBJS_DIR)/%.o: $(UTSBASE)/i86pc/io/acpi/acpinex/%.c
82 SBD_IOCTL = $(UTSBASE)/i86pc/sys/sbd_ioctl.h
83 DRMACH_IO = $(UTSBASE)/i86pc/io/acpi/drmach_acpi
84 DRMACH_GENERR = $(DRMACH_IO)/sbdgenerr
85 DR_IO = $(UTSBASE)/i86pc/io/dr
86 DR_GENERR = $(DR_IO)/sbdgenerr
88 $(DRMACH_GENERR): $(DR_IO)/sbdgenerr.pl
90 $(CAT) $(DR_IO)/sbdgenerr.pl > $@
93 $(DRMACH_IO)/drmach_err.c: $(DRMACH_GENERR) $(SBD_IOCTL)
95 $(DRMACH_GENERR) EX86 < $(SBD_IOCTL) > $(DRMACH_IO)/drmach_err.c
97 $(OBJS_DIR)/%.o: $(UTSBASE)/i86pc/io/acpi/drmach_acpi/%.c
101 $(OBJS_DIR)/%.o: $(UTSBASE)/i86pc/io/amd_iommu/%.c
102 $(COMPILE.c) -o $@ $<
105 $(DR_GENERR): $(DR_IO)/sbdgenerr.pl
107 $(CAT) $(DR_IO)/sbdgenerr.pl > $@
110 $(DR_IO)/dr_err.c: $(DR_GENERR) $(SBD_IOCTL)
112 $(DR_GENERR) ESBD < $(SBD_IOCTL) > $(DR_IO)/dr_err.c
114 $(OBJS_DIR)/%.o: $(UTSBASE)/i86pc/io/dr/%.c
115 $(COMPILE.c) -o $@ $<
118 $(OBJS_DIR)/%.o: $(UTSBASE)/i86pc/io/ioat/%.c
119 $(COMPILE.c) -o $@ $<
122 $(OBJS_DIR)/%.o: $(UTSBASE)/i86pc/io/pci/%.c
123 $(COMPILE.c) -o $@ $<
126 $(OBJS_DIR)/%.o: $(UTSBASE)/i86pc/io/pciex/%.c
127 $(COMPILE.c) -o $@ $<
130 $(OBJS_DIR)/%.o: $(UTSBASE)/intel/io/pciex/hotplug/%.c
131 $(COMPILE.c) -o $@ $<
134 $(OBJS_DIR)/%.o: $(UTSBASE)/i86pc/io/pcplusmp/%.c
135 $(COMPILE.c) -o $@ $<
138 $(OBJS_DIR)/%.o: $(UTSBASE)/i86pc/io/pcplusmp/%.s
139 $(COMPILE.s) -o $@ $<
141 $(OBJS_DIR)/%.o: $(UTSBASE)/i86pc/io/apix/%.c
142 $(COMPILE.c) -o $@ $<
145 $(OBJS_DIR)/%.o: $(UTSBASE)/i86pc/io/ppm/%.c
146 $(COMPILE.c) -o $@ $<
149 $(OBJS_DIR)/%.o: $(UTSBASE)/i86pc/io/ppm/%.s
150 $(COMPILE.s) -o $@ $<
152 $(OBJS_DIR)/%.o: $(UTSBASE)/i86pc/io/psm/%.c
153 $(COMPILE.c) -o $@ $<
156 $(OBJS_DIR)/%.o: $(UTSBASE)/i86pc/io/psm/%.s
157 $(COMPILE.s) -o $@ $<
159 $(OBJS_DIR)/%.o: $(UTSBASE)/i86pc/io/tzmon/%.c
160 $(COMPILE.c) -o $@ $<
163 $(OBJS_DIR)/%.o: $(UTSBASE)/i86pc/ml/%.s
164 $(COMPILE.s) -o $@ $<
166 $(OBJS_DIR)/%.o: $(UTSBASE)/i86pc/os/%.c
167 $(COMPILE.c) -_gcc=-fno-stack-protector -o $@ $<
170 $(OBJS_DIR)/%.o: $(UTSBASE)/i86pc/os/cpupm/%.c
171 $(COMPILE.c) -o $@ $<
174 $(OBJS_DIR)/%.o: $(UTSBASE)/i86pc/boot/%.c
175 $(COMPILE.c) -o $@ $<
178 $(OBJS_DIR)/%.o: $(UTSBASE)/i86pc/vm/%.c
179 $(COMPILE.c) -o $@ $<
182 $(OBJS_DIR)/%.o: $(UTSBASE)/common/io/%.c
183 $(COMPILE.c) -o $@ $<
186 $(OBJS_DIR)/%.o: $(UTSBASE)/common/io/ppm/%.c
187 $(COMPILE.c) -o $@ $<
190 $(OBJS_DIR)/%.o: $(UTSBASE)/common/io/pciex/%.c
191 $(COMPILE.c) -o $@ $<
194 $(OBJS_DIR)/%.o: $(UTSBASE)/common/os/%.c
195 $(COMPILE.c) -o $@ $<
198 $(OBJS_DIR)/%.o: $(SRC)/common/dis/i386/%.c
199 $(COMPILE.c) -o $@ $<
202 $(OBJS_DIR)/%.o: $(UTSBASE)/i86pc/io/gfx_private/%.c
203 $(COMPILE.c) -o $@ $<
206 $(OBJS_DIR)/%.o: $(UTSBASE)/i86pc/io/xsvc/%.c
207 $(COMPILE.c) -o $@ $<
210 $(OBJS_DIR)/%.o: $(UTSBASE)/common/xen/os/%.c
211 $(COMPILE.c) -o $@ $<
214 $(OBJS_DIR)/%.o: $(UTSBASE)/i86pc/dboot/%.c
215 $(COMPILE.c) -o $@ $<
219 # dboot stuff is always 32 bit, linked to run with phys_addr == virt_addr
221 DBOOT_OBJS_DIR = dboot/$(OBJS_DIR)
222 DBOOT_MACH_32 = -D_BOOT_TARGET_i386
223 DBOOT_MACH_64 = -D_BOOT_TARGET_amd64
224 DBOOT_DEFS = -D_BOOT $(DBOOT_MACH_$(CLASS))
225 DBOOT_DEFS += -D_MACHDEP -D_KMEMUSER -U_KERNEL -D_I32LPx
226 DBOOT_FLAGS = $(CCVERBOSE) $(C99MODE) $(CERRWARN) $(CCNOAUTOINLINE)
228 DBOOT_CC_INCL = -I$(SRC)/common -I$(SRC)/common/util $(INCLUDE_PATH)
229 DBOOT_AS_INCL = $(AS_INC_PATH)
231 DBOOT_AS = $(ONBLD_TOOLS)/bin/$(MACH)/aw
233 DBOOT_LINTS_DIR = $(DBOOT_OBJS_DIR)
234 DBOOT_LINTFLAGS_i86pc = $(LINTFLAGS_i386_32) $(LINTTAGS_i386_32)
236 DBOOT_LINTFLAGS = $(DBOOT_LINTFLAGS_$(PLATFORM)) $(LINTTAGS) $(C99LMODE) \
237 $(CPPFLAGS) $(DBOOT_DEFS)
238 DBOOT_LOCAL_LINTFLAGS = -c -dirout=$(DBOOT_LINTS_DIR) -I$(SRC)/common \
239 $(DBOOT_LINTFLAGS) $(DBOOT_LINTTAGS)
241 $(DBOOT_OBJS_DIR)/%.o: $(UTSBASE)/i86pc/boot/%.c
242 $(i386_CC) $(DBOOT_FLAGS) -O $(DBOOT_DEFS) $(DBOOT_CC_INCL) -c -o $@ $<
244 $(DBOOT_OBJS_DIR)/%.o: $(UTSBASE)/i86pc/dboot/%.c
245 $(i386_CC) $(DBOOT_FLAGS) -O $(DBOOT_DEFS) $(DBOOT_CC_INCL) -c -o $@ $<
247 $(DBOOT_OBJS_DIR)/%.o: $(UTSBASE)/intel/ia32/%.s
248 $(DBOOT_AS) -P -D_ASM $(DBOOT_DEFS) $(DBOOT_AS_INCL) -o $@ $<
250 $(DBOOT_OBJS_DIR)/%.o: $(UTSBASE)/common/font/%.c
251 $(i386_CC) $(DBOOT_FLAGS) -O $(DBOOT_DEFS) $(DBOOT_CC_INCL) -c -o $@ $<
253 $(DBOOT_OBJS_DIR)/$(VGATEXT_FONT).c: \
254 $(VGATEXT_FONT_DIR)/$(VGATEXT_FONT_SRC).bdf \
255 $(VGATEXT_FONT_DIR)/bdf_to_c.awk
256 $(AWK) -f $(VGATEXT_FONT_DIR)/bdf_to_c.awk \
257 $(VGATEXT_FONT_DIR)/$(VGATEXT_FONT_SRC).bdf > $@
259 $(DBOOT_OBJS_DIR)/%.o: $(DBOOT_OBJS_DIR)/%.c
260 $(i386_CC) $(DBOOT_FLAGS) -O $(DBOOT_DEFS) $(DBOOT_CC_INCL) -c -o $@ $<
262 $(DBOOT_OBJS_DIR)/%.o: $(COMMONBASE)/crypto/sha1/%.c
263 $(i386_CC) $(DBOOT_FLAGS) -O $(DBOOT_DEFS) $(DBOOT_CC_INCL) -c -o $@ $<
265 $(DBOOT_OBJS_DIR)/%.o: $(DBOOT_OBJS_DIR)/%.c
266 $(i386_CC) $(DBOOT_FLAGS) -O $(DBOOT_DEFS) $(DBOOT_CC_INCL) -c -o $@ $<
268 $(DBOOT_OBJS_DIR)/%.o: $(COMMONBASE)/util/%.c
269 $(i386_CC) $(DBOOT_FLAGS) -O $(DBOOT_DEFS) $(DBOOT_CC_INCL) -c -o $@ $<
271 $(DBOOT_OBJS_DIR)/%.o: $(COMMONBASE)/util/i386/%.s
272 $(DBOOT_AS) -P -D_ASM $(DBOOT_DEFS) $(DBOOT_AS_INCL) -o $@ $<
274 $(DBOOT_OBJS_DIR)/%.o: $(UTSBASE)/i86pc/dboot/%.s
275 $(DBOOT_AS) -P -D_ASM $(DBOOT_DEFS) $(DBOOT_AS_INCL) -o $@ $<
278 # Stuff to build bios_call.o for the kernel.
280 MAPFILE_BIOS = $(UTSBASE)/i86pc/conf/Mapfile.bios
281 $(OBJS_DIR)/bios_call.o: $(UTSBASE)/i86pc/ml/bios_call_src.s
282 $(COMPILE.s) -o $(OBJS_DIR)/bios_call_src.o \
283 $(UTSBASE)/i86pc/ml/bios_call_src.s
284 $(LD) -dn -M $(MAPFILE_BIOS) \
285 -o $(OBJS_DIR)/bios_call_src $(OBJS_DIR)/bios_call_src.o
286 @echo " .data" > $(OBJS_DIR)/bios_call.s
287 @echo " .globl bios_image" >> $(OBJS_DIR)/bios_call.s
288 @echo "bios_image:" >> $(OBJS_DIR)/bios_call.s
289 $(ELFEXTRACT) $(OBJS_DIR)/bios_call_src >> $(OBJS_DIR)/bios_call.s
290 @echo " .align 4" >> $(OBJS_DIR)/bios_call.s
291 @echo " .globl bios_size" >> $(OBJS_DIR)/bios_call.s
292 @echo "bios_size:" >> $(OBJS_DIR)/bios_call.s
293 @echo " .long . - bios_image" >> $(OBJS_DIR)/bios_call.s
294 $(COMPILE.s) -o $@ $(OBJS_DIR)/bios_call.s
297 # Stuff to build fb_swtch.o for the kernel.
299 MAPFILE_FBSWTCH = $(UTSBASE)/i86pc/conf/Mapfile.fb_swtch
300 $(OBJS_DIR)/fb_swtch.o: $(UTSBASE)/i86pc/ml/fb_swtch_src.s
301 $(COMPILE.s) -o $(OBJS_DIR)/fb_swtch_src.o \
302 $(UTSBASE)/i86pc/ml/fb_swtch_src.s
303 $(LD) -dn -M $(MAPFILE_FBSWTCH) \
304 -o $(OBJS_DIR)/fb_swtch_src $(OBJS_DIR)/fb_swtch_src.o
305 @echo " .data" > $(OBJS_DIR)/fb_swtch.s
306 @echo " .globl fb_swtch_image" >> $(OBJS_DIR)/fb_swtch.s
307 @echo "fb_swtch_image:" >> $(OBJS_DIR)/fb_swtch.s
308 $(ELFEXTRACT) $(OBJS_DIR)/fb_swtch_src >> $(OBJS_DIR)/fb_swtch.s
309 @echo " .align 4" >> $(OBJS_DIR)/fb_swtch.s
310 @echo " .globl fb_swtch_size" >> $(OBJS_DIR)/fb_swtch.s
311 @echo "fb_swtch_size:" >> $(OBJS_DIR)/fb_swtch.s
312 @echo " .long . - fb_swtch_image" >> $(OBJS_DIR)/fb_swtch.s
313 $(COMPILE.s) -o $@ $(OBJS_DIR)/fb_swtch.s
315 # ridiculous contortions ---
316 ATOMIC_SUBDIR_32 = i386
317 ATOMIC_SUBDIR_64 = amd64
318 ATOMIC_SUBDIR = $(ATOMIC_SUBDIR_$(CLASS))
320 $(OBJS_DIR)/%.o: $(SRC)/common/atomic/$(ATOMIC_SUBDIR)/%.s
321 $(COMPILE.s) -o $@ $<
327 $(OBJS_DIR)/dtracestubs.s: $(UNIX_O) $(LIBS)
328 $(NM) -u $(UNIX_O) $(LIBS) | $(GREP) __dtrace_probe_ | $(SORT) | \
329 $(UNIQ) | $(AWK) '{ \
330 printf("\t.globl %s\n\t.type %s,@function\n%s:\n", \
331 $$1, $$1, $$1); }' > $(OBJS_DIR)/dtracestubs.s
333 $(DTRACESTUBS): $(DTRACESTUBS_O)
334 $(BUILD.SO) $(DTRACESTUBS_O)
337 # Section 1b: Lint `object' build rules
339 $(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/conf/%.c
340 @($(LHEAD) $(LINT.c) $< $(LTAIL))
342 $(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/cpu/amd_opteron/%.c
343 @($(LHEAD) $(LINT.c) $< $(LTAIL))
345 $(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/cpu/authenticamd/%.c
346 @($(LHEAD) $(LINT.c) $< $(LTAIL))
348 $(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/cpu/generic_cpu/%.c
349 @($(LHEAD) $(LINT.c) $< $(LTAIL))
351 $(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/cpu/genuineintel/%.c
352 @($(LHEAD) $(LINT.c) $< $(LTAIL))
354 $(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/io/%.c
355 @($(LHEAD) $(LINT.c) $< $(LTAIL))
357 $(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/io/acpi_drv/%.c
358 @($(LHEAD) $(LINT.c) $< $(LTAIL))
360 $(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/io/fipe/%.c
361 @($(LHEAD) $(LINT.c) $< $(LTAIL))
363 $(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/io/acpi/acpidev/%.c
364 @($(LHEAD) $(LINT.c) $< $(LTAIL))
366 $(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/io/acpi/acpinex/%.c
367 @($(LHEAD) $(LINT.c) $< $(LTAIL))
369 $(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/io/acpi/drmach_acpi/%.c
370 @($(LHEAD) $(LINT.c) $< $(LTAIL))
372 $(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/io/amd_iommu/%.c
373 @($(LHEAD) $(LINT.c) $< $(LTAIL))
375 $(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/io/dr/%.c
376 @($(LHEAD) $(LINT.c) $< $(LTAIL))
378 $(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/io/ioat/%.c
379 @($(LHEAD) $(LINT.c) $< $(LTAIL))
381 $(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/io/pci/%.c
382 @($(LHEAD) $(LINT.c) $< $(LTAIL))
384 $(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/io/pciex/%.c
385 @($(LHEAD) $(LINT.c) $< $(LTAIL))
387 $(LINTS_DIR)/%.ln: $(UTSBASE)/intel/io/pciex/hotplug/%.c
388 @($(LHEAD) $(LINT.c) $< $(LTAIL))
390 $(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/io/pcplusmp/%.c
391 @($(LHEAD) $(LINT.c) $< $(LTAIL))
393 $(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/io/pcplusmp/%.s
394 @($(LHEAD) $(LINT.s) $< $(LTAIL))
396 $(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/io/apix/%.c
397 @($(LHEAD) $(LINT.c) $< $(LTAIL))
399 $(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/io/apix/%.s
400 @($(LHEAD) $(LINT.s) $< $(LTAIL))
402 $(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/io/ppm/%.c
403 @($(LHEAD) $(LINT.c) $< $(LTAIL))
405 $(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/io/ppm/%.s
406 @($(LHEAD) $(LINT.s) $< $(LTAIL))
408 $(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/io/psm/%.c
409 @($(LHEAD) $(LINT.c) $< $(LTAIL))
411 $(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/io/psm/%.s
412 @($(LHEAD) $(LINT.s) $< $(LTAIL))
414 $(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/io/tzmon/%.c
415 @($(LHEAD) $(LINT.c) $< $(LTAIL))
417 $(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/ml/%.s
418 @($(LHEAD) $(LINT.s) $< $(LTAIL))
420 $(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/os/%.c
421 @($(LHEAD) $(LINT.c) $< $(LTAIL))
423 $(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/os/cpupm/%.c
424 @($(LHEAD) $(LINT.c) $< $(LTAIL))
426 $(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/boot/%.c
427 @($(LHEAD) $(LINT.c) $< $(LTAIL))
429 $(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/dboot/%.c
430 @($(LHEAD) $(LINT.c) $< $(LTAIL))
432 $(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/vm/%.c
433 @($(LHEAD) $(LINT.c) $< $(LTAIL))
435 $(LINTS_DIR)/%.ln: $(UTSBASE)/common/font/%.c
436 @($(LHEAD) $(LINT.c) $< $(LTAIL))
438 $(LINTS_DIR)/%.ln: $(UTSBASE)/common/io/%.c
439 @($(LHEAD) $(LINT.c) $< $(LTAIL))
441 $(LINTS_DIR)/%.ln: $(UTSBASE)/common/io/ppm/%.c
442 @($(LHEAD) $(LINT.c) $< $(LTAIL))
444 $(LINTS_DIR)/%.ln: $(UTSBASE)/common/io/pciex/%.c
445 @($(LHEAD) $(LINT.c) $< $(LTAIL))
447 $(LINTS_DIR)/%.ln: $(UTSBASE)/common/os/%.c
448 @($(LHEAD) $(LINT.c) $< $(LTAIL))
450 $(LINTS_DIR)/%.ln: $(SRC)/common/dis/i386/%.c
451 @($(LHEAD) $(LINT.c) $< $(LTAIL))
453 $(LINTS_DIR)/%.ln: $(SRC)/common/atomic/%.c
454 @($(LHEAD) $(LINT.c) $< $(LTAIL))
456 $(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/io/gfx_private/%.c
457 @($(LHEAD) $(LINT.c) $< $(LTAIL))
459 $(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/io/xsvc/%.c
460 @($(LHEAD) $(LINT.c) $< $(LTAIL))
462 $(LINTS_DIR)/%.ln: $(UTSBASE)/common/xen/os/%.c
463 @($(LHEAD) $(LINT.c) $< $(LTAIL))
466 # bios call has a funky name change while building
468 $(LINTS_DIR)/bios_call.ln: $(UTSBASE)/i86pc/ml/bios_call_src.s
469 @($(LHEAD) $(LINT.s) $(UTSBASE)/i86pc/ml/bios_call_src.s $(LTAIL))
470 @mv $(LINTS_DIR)/bios_call_src.ln $(LINTS_DIR)/bios_call.ln
475 $(LINTS_DIR)/fb_swtch.ln: $(UTSBASE)/i86pc/ml/fb_swtch_src.s
476 @($(LHEAD) $(LINT.s) $(UTSBASE)/i86pc/ml/fb_swtch_src.s $(LTAIL))
477 @mv $(LINTS_DIR)/fb_swtch_src.ln $(LINTS_DIR)/fb_swtch.ln
480 # dboot always compiles in 32-bit mode, so force lint to be 32-bit mode too.
482 $(DBOOT_LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/dboot/%.c
483 @($(LHEAD) $(DBOOT_LINT) $(DBOOT_LOCAL_LINTFLAGS) $< $(LTAIL))
485 $(DBOOT_LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/dboot/%.s
486 @($(LHEAD) $(DBOOT_LINT) $(DBOOT_LOCAL_LINTFLAGS) $< $(LTAIL))
488 $(DBOOT_LINTS_DIR)/%.ln: $(DBOOT_LINTS_DIR)/%.c
489 @($(LHEAD) $(DBOOT_LINT) $(DBOOT_LOCAL_LINTFLAGS) $< $(LTAIL))
491 $(DBOOT_LINTS_DIR)/%.ln: $(UTSBASE)/common/font/%.c
492 @($(LHEAD) $(DBOOT_LINT) $(DBOOT_LOCAL_LINTFLAGS) $< $(LTAIL))
494 $(DBOOT_LINTS_DIR)/%.ln: $(COMMONBASE)/crypto/sha1/%.c
495 @($(LHEAD) $(DBOOT_LINT) $(DBOOT_LOCAL_LINTFLAGS) $< $(LTAIL))
497 $(DBOOT_LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/boot/%.c
498 @($(LHEAD) $(DBOOT_LINT) $(DBOOT_LOCAL_LINTFLAGS) $< $(LTAIL))
500 $(DBOOT_LINTS_DIR)/%.ln: $(COMMONBASE)/util/%.c
501 @($(LHEAD) $(DBOOT_LINT) $(DBOOT_LOCAL_LINTFLAGS) $< $(LTAIL))
503 $(DBOOT_LINTS_DIR)/%.ln: $(COMMONBASE)/util/i386/%.s
504 @($(LHEAD) $(DBOOT_LINT) $(DBOOT_LOCAL_LINTFLAGS) $< $(LTAIL))