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