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$(OBJS_DIR)/%.o: $(UTSBASE)/i86pc/dboot/%.c 214 $(COMPILE.c) -o $@ $< 215 $(CTFCONVERT_O) 216 217# 218# dboot stuff is always 32 bit, linked to run with phys_addr == virt_addr 219# 220DBOOT_OBJS_DIR = dboot/$(OBJS_DIR) 221DBOOT_MACH_32 = -D_BOOT_TARGET_i386 222DBOOT_MACH_64 = -D_BOOT_TARGET_amd64 223DBOOT_DEFS = -D_BOOT $(DBOOT_MACH_$(CLASS)) 224DBOOT_DEFS += -D_MACHDEP -D_KMEMUSER -U_KERNEL -D_I32LPx 225DBOOT_FLAGS = $(CCVERBOSE) $(CERRWARN) $(CCNOAUTOINLINE) 226 227DBOOT_CC_INCL = -I$(SRC)/common -I$(SRC)/common/util $(INCLUDE_PATH) 228DBOOT_AS_INCL = $(AS_INC_PATH) 229 230DBOOT_AS = $(ONBLD_TOOLS)/bin/$(MACH)/aw 231 232DBOOT_LINTS_DIR = $(DBOOT_OBJS_DIR) 233DBOOT_LINTFLAGS_i86pc = $(LINTFLAGS_i386_32) $(LINTTAGS_i386_32) 234 235DBOOT_LINTFLAGS = $(DBOOT_LINTFLAGS_$(PLATFORM)) $(LINTTAGS) $(C99LMODE) \ 236 $(CPPFLAGS) $(DBOOT_DEFS) 237DBOOT_LOCAL_LINTFLAGS = -c -dirout=$(DBOOT_LINTS_DIR) -I$(SRC)/common \ 238 $(DBOOT_LINTFLAGS) $(DBOOT_LINTTAGS) 239 240$(DBOOT_OBJS_DIR)/%.o: $(UTSBASE)/i86pc/boot/%.c 241 $(i386_CC) $(DBOOT_FLAGS) -O $(DBOOT_DEFS) $(DBOOT_CC_INCL) -c -o $@ $< 242 243$(DBOOT_OBJS_DIR)/%.o: $(UTSBASE)/i86pc/dboot/%.c 244 $(i386_CC) $(DBOOT_FLAGS) -O $(DBOOT_DEFS) $(DBOOT_CC_INCL) -c -o $@ $< 245 246$(DBOOT_OBJS_DIR)/%.o: $(UTSBASE)/intel/ia32/%.s 247 $(DBOOT_AS) -P -D_ASM $(DBOOT_DEFS) $(DBOOT_AS_INCL) -o $@ $< 248 249$(DBOOT_OBJS_DIR)/%.o: $(COMMONBASE)/crypto/sha1/%.c 250 $(i386_CC) $(CERRWARN) -O $(DBOOT_DEFS) $(DBOOT_CC_INCL) -c -o $@ $< 251 252$(DBOOT_OBJS_DIR)/%.o: $(COMMONBASE)/util/%.c 253 $(i386_CC) $(DBOOT_FLAGS) -O $(DBOOT_DEFS) $(DBOOT_CC_INCL) -c -o $@ $< 254 255$(DBOOT_OBJS_DIR)/%.o: $(COMMONBASE)/util/i386/%.s 256 $(DBOOT_AS) -P -D_ASM $(DBOOT_DEFS) $(DBOOT_AS_INCL) -o $@ $< 257 258$(DBOOT_OBJS_DIR)/%.o: $(UTSBASE)/i86pc/dboot/%.s 259 $(DBOOT_AS) -P -D_ASM $(DBOOT_DEFS) $(DBOOT_AS_INCL) -o $@ $< 260 261# 262# Stuff to build bios_call.o for the kernel. 263# 264MAPFILE_BIOS = $(UTSBASE)/i86pc/conf/Mapfile.bios 265$(OBJS_DIR)/bios_call.o: $(UTSBASE)/i86pc/ml/bios_call_src.s 266 $(COMPILE.s) -o $(OBJS_DIR)/bios_call_src.o \ 267 $(UTSBASE)/i86pc/ml/bios_call_src.s 268 $(LD) -dn -M $(MAPFILE_BIOS) \ 269 -o $(OBJS_DIR)/bios_call_src $(OBJS_DIR)/bios_call_src.o 270 @echo " .data" > $(OBJS_DIR)/bios_call.s 271 @echo " .globl bios_image" >> $(OBJS_DIR)/bios_call.s 272 @echo "bios_image:" >> $(OBJS_DIR)/bios_call.s 273 $(ELFEXTRACT) $(OBJS_DIR)/bios_call_src >> $(OBJS_DIR)/bios_call.s 274 @echo " .align 4" >> $(OBJS_DIR)/bios_call.s 275 @echo " .globl bios_size" >> $(OBJS_DIR)/bios_call.s 276 @echo "bios_size:" >> $(OBJS_DIR)/bios_call.s 277 @echo " .long . - bios_image" >> $(OBJS_DIR)/bios_call.s 278 $(COMPILE.s) -o $@ $(OBJS_DIR)/bios_call.s 279 280# 281# Stuff to build fb_swtch.o for the kernel. 282# 283MAPFILE_FBSWTCH = $(UTSBASE)/i86pc/conf/Mapfile.fb_swtch 284$(OBJS_DIR)/fb_swtch.o: $(UTSBASE)/i86pc/ml/fb_swtch_src.s 285 $(COMPILE.s) -o $(OBJS_DIR)/fb_swtch_src.o \ 286 $(UTSBASE)/i86pc/ml/fb_swtch_src.s 287 $(LD) -dn -M $(MAPFILE_FBSWTCH) \ 288 -o $(OBJS_DIR)/fb_swtch_src $(OBJS_DIR)/fb_swtch_src.o 289 @echo " .data" > $(OBJS_DIR)/fb_swtch.s 290 @echo " .globl fb_swtch_image" >> $(OBJS_DIR)/fb_swtch.s 291 @echo "fb_swtch_image:" >> $(OBJS_DIR)/fb_swtch.s 292 $(ELFEXTRACT) $(OBJS_DIR)/fb_swtch_src >> $(OBJS_DIR)/fb_swtch.s 293 @echo " .align 4" >> $(OBJS_DIR)/fb_swtch.s 294 @echo " .globl fb_swtch_size" >> $(OBJS_DIR)/fb_swtch.s 295 @echo "fb_swtch_size:" >> $(OBJS_DIR)/fb_swtch.s 296 @echo " .long . - fb_swtch_image" >> $(OBJS_DIR)/fb_swtch.s 297 $(COMPILE.s) -o $@ $(OBJS_DIR)/fb_swtch.s 298 299# ridiculous contortions --- 300ATOMIC_SUBDIR_32 = i386 301ATOMIC_SUBDIR_64 = amd64 302ATOMIC_SUBDIR = $(ATOMIC_SUBDIR_$(CLASS)) 303 304$(OBJS_DIR)/%.o: $(SRC)/common/atomic/$(ATOMIC_SUBDIR)/%.s 305 $(COMPILE.s) -o $@ $< 306 307# 308# dtrace stubs 309# 310 311$(OBJS_DIR)/dtracestubs.s: $(UNIX_O) $(LIBS) 312 $(NM) -u $(UNIX_O) $(LIBS) | $(GREP) __dtrace_probe_ | $(SORT) | \ 313 $(UNIQ) | $(NAWK) '{ \ 314 printf("\t.globl %s\n\t.type %s,@function\n%s:\n", \ 315 $$1, $$1, $$1); }' > $(OBJS_DIR)/dtracestubs.s 316 317$(DTRACESTUBS): $(DTRACESTUBS_O) 318 $(BUILD.SO) $(DTRACESTUBS_O) 319 320# 321# Section 1b: Lint `object' build rules 322# 323$(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/conf/%.c 324 @($(LHEAD) $(LINT.c) $< $(LTAIL)) 325 326$(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/cpu/amd_opteron/%.c 327 @($(LHEAD) $(LINT.c) $< $(LTAIL)) 328 329$(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/cpu/authenticamd/%.c 330 @($(LHEAD) $(LINT.c) $< $(LTAIL)) 331 332$(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/cpu/generic_cpu/%.c 333 @($(LHEAD) $(LINT.c) $< $(LTAIL)) 334 335$(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/cpu/genuineintel/%.c 336 @($(LHEAD) $(LINT.c) $< $(LTAIL)) 337 338$(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/io/%.c 339 @($(LHEAD) $(LINT.c) $< $(LTAIL)) 340 341$(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/io/acpi_drv/%.c 342 @($(LHEAD) $(LINT.c) $< $(LTAIL)) 343 344$(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/io/fipe/%.c 345 @($(LHEAD) $(LINT.c) $< $(LTAIL)) 346 347$(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/io/acpi/acpidev/%.c 348 @($(LHEAD) $(LINT.c) $< $(LTAIL)) 349 350$(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/io/acpi/acpinex/%.c 351 @($(LHEAD) $(LINT.c) $< $(LTAIL)) 352 353$(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/io/acpi/drmach_acpi/%.c 354 @($(LHEAD) $(LINT.c) $< $(LTAIL)) 355 356$(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/io/amd_iommu/%.c 357 @($(LHEAD) $(LINT.c) $< $(LTAIL)) 358 359$(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/io/dr/%.c 360 @($(LHEAD) $(LINT.c) $< $(LTAIL)) 361 362$(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/io/ioat/%.c 363 @($(LHEAD) $(LINT.c) $< $(LTAIL)) 364 365$(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/io/pci/%.c 366 @($(LHEAD) $(LINT.c) $< $(LTAIL)) 367 368$(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/io/pciex/%.c 369 @($(LHEAD) $(LINT.c) $< $(LTAIL)) 370 371$(LINTS_DIR)/%.ln: $(UTSBASE)/intel/io/pciex/hotplug/%.c 372 @($(LHEAD) $(LINT.c) $< $(LTAIL)) 373 374$(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/io/pcplusmp/%.c 375 @($(LHEAD) $(LINT.c) $< $(LTAIL)) 376 377$(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/io/pcplusmp/%.s 378 @($(LHEAD) $(LINT.s) $< $(LTAIL)) 379 380$(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/io/apix/%.c 381 @($(LHEAD) $(LINT.c) $< $(LTAIL)) 382 383$(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/io/apix/%.s 384 @($(LHEAD) $(LINT.s) $< $(LTAIL)) 385 386$(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/io/ppm/%.c 387 @($(LHEAD) $(LINT.c) $< $(LTAIL)) 388 389$(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/io/ppm/%.s 390 @($(LHEAD) $(LINT.s) $< $(LTAIL)) 391 392$(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/io/psm/%.c 393 @($(LHEAD) $(LINT.c) $< $(LTAIL)) 394 395$(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/io/psm/%.s 396 @($(LHEAD) $(LINT.s) $< $(LTAIL)) 397 398$(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/io/tzmon/%.c 399 @($(LHEAD) $(LINT.c) $< $(LTAIL)) 400 401$(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/ml/%.s 402 @($(LHEAD) $(LINT.s) $< $(LTAIL)) 403 404$(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/os/%.c 405 @($(LHEAD) $(LINT.c) $< $(LTAIL)) 406 407$(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/os/cpupm/%.c 408 @($(LHEAD) $(LINT.c) $< $(LTAIL)) 409 410$(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/boot/%.c 411 @($(LHEAD) $(LINT.c) $< $(LTAIL)) 412 413$(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/dboot/%.c 414 @($(LHEAD) $(LINT.c) $< $(LTAIL)) 415 416$(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/vm/%.c 417 @($(LHEAD) $(LINT.c) $< $(LTAIL)) 418 419$(LINTS_DIR)/%.ln: $(UTSBASE)/common/io/%.c 420 @($(LHEAD) $(LINT.c) $< $(LTAIL)) 421 422$(LINTS_DIR)/%.ln: $(UTSBASE)/common/io/ppm/%.c 423 @($(LHEAD) $(LINT.c) $< $(LTAIL)) 424 425$(LINTS_DIR)/%.ln: $(UTSBASE)/common/io/pciex/%.c 426 @($(LHEAD) $(LINT.c) $< $(LTAIL)) 427 428$(LINTS_DIR)/%.ln: $(UTSBASE)/common/os/%.c 429 @($(LHEAD) $(LINT.c) $< $(LTAIL)) 430 431$(LINTS_DIR)/%.ln: $(SRC)/common/dis/i386/%.c 432 @($(LHEAD) $(LINT.c) $< $(LTAIL)) 433 434$(LINTS_DIR)/%.ln: $(SRC)/common/atomic/%.c 435 @($(LHEAD) $(LINT.c) $< $(LTAIL)) 436 437$(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/io/gfx_private/%.c 438 @($(LHEAD) $(LINT.c) $< $(LTAIL)) 439 440$(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/io/xsvc/%.c 441 @($(LHEAD) $(LINT.c) $< $(LTAIL)) 442 443$(LINTS_DIR)/%.ln: $(UTSBASE)/common/xen/os/%.c 444 @($(LHEAD) $(LINT.c) $< $(LTAIL)) 445 446# 447# bios call has a funky name change while building 448# 449$(LINTS_DIR)/bios_call.ln: $(UTSBASE)/i86pc/ml/bios_call_src.s 450 @($(LHEAD) $(LINT.s) $(UTSBASE)/i86pc/ml/bios_call_src.s $(LTAIL)) 451 @mv $(LINTS_DIR)/bios_call_src.ln $(LINTS_DIR)/bios_call.ln 452 453# 454# So does fb_swtch 455# 456$(LINTS_DIR)/fb_swtch.ln: $(UTSBASE)/i86pc/ml/fb_swtch_src.s 457 @($(LHEAD) $(LINT.s) $(UTSBASE)/i86pc/ml/fb_swtch_src.s $(LTAIL)) 458 @mv $(LINTS_DIR)/fb_swtch_src.ln $(LINTS_DIR)/fb_swtch.ln 459 460# 461# dboot always compiles in 32-bit mode, so force lint to be 32-bit mode too. 462# 463$(DBOOT_LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/dboot/%.c 464 @($(LHEAD) $(DBOOT_LINT) $(DBOOT_LOCAL_LINTFLAGS) $< $(LTAIL)) 465 466$(DBOOT_LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/dboot/%.s 467 @($(LHEAD) $(DBOOT_LINT) $(DBOOT_LOCAL_LINTFLAGS) $< $(LTAIL)) 468 469$(DBOOT_LINTS_DIR)/%.ln: $(COMMONBASE)/crypto/sha1/%.c 470 @($(LHEAD) $(DBOOT_LINT) $(DBOOT_LOCAL_LINTFLAGS) $< $(LTAIL)) 471 472$(DBOOT_LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/boot/%.c 473 @($(LHEAD) $(DBOOT_LINT) $(DBOOT_LOCAL_LINTFLAGS) $< $(LTAIL)) 474 475$(DBOOT_LINTS_DIR)/%.ln: $(COMMONBASE)/util/%.c 476 @($(LHEAD) $(DBOOT_LINT) $(DBOOT_LOCAL_LINTFLAGS) $< $(LTAIL)) 477 478$(DBOOT_LINTS_DIR)/%.ln: $(COMMONBASE)/util/i386/%.s 479 @($(LHEAD) $(DBOOT_LINT) $(DBOOT_LOCAL_LINTFLAGS) $< $(LTAIL)) 480