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 # Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. 22 # Copyright 2013 Garrett D'Amore <garrett@damore.org> 23 # 24 25 # Common definitions for open and closed headers. 26 27 # check files really don't exist 28 29 audio/%.check: audio/%.h 30 $(DOT_H_CHECK) 31 32 av/%.check: av/%.h 33 $(DOT_H_CHECK) 34 35 fm/%.check: fm/%.h 36 $(DOT_H_CHECK) 37 38 fm/cpu/%.check: fm/cpu/%.h 39 $(DOT_H_CHECK) 40 41 fm/fs/%.check: fm/fs/%.h 42 $(DOT_H_CHECK) 43 44 fm/io/%.check: fm/io/%.h 45 $(DOT_H_CHECK) 46 47 fs/%.check: fs/%.h 48 $(DOT_H_CHECK) 49 50 ib/%.check: ib/%.h 51 $(DOT_H_CHECK) 52 53 ib/clients/ibd/%.check: ib/clients/ibd/%.h 54 $(DOT_H_CHECK) 55 56 ib/clients/of/%.check: ib/clients/of/%.h 57 $(DOT_H_CHECK) 58 59 ib/clients/of/rdma/%.check: ib/clients/of/rdma/%.h 60 $(DOT_H_CHECK) 61 62 ib/clients/of/sol_ofs/%.check: ib/clients/of/sol_ofs/%.h 63 $(DOT_H_CHECK) 64 65 ib/clients/of/sol_uverbs/%.check: ib/clients/of/sol_uverbs/%.h 66 $(DOT_H_CHECK) 67 68 ib/clients/of/sol_umad/%.check: ib/clients/of/sol_umad/%.h 69 $(DOT_H_CHECK) 70 71 ib/clients/of/sol_ucma/%.check: ib/clients/of/sol_ucma/%.h 72 $(DOT_H_CHECK) 73 74 ib/ibtl/%.check: ib/ibtl/%.h 75 $(DOT_H_CHECK) 76 77 ib/ibtl/impl/%.check: ib/ibtl/impl/%.h 78 $(DOT_H_CHECK) 79 80 ib/ibnex/%.check: ib/ibnex/%.h 81 $(DOT_H_CHECK) 82 83 ib/mgt/%.check: ib/mgt/%.h 84 $(DOT_H_CHECK) 85 86 ib/mgt/ibmf/%.check: ib/mgt/ibmf/%.h 87 $(DOT_H_CHECK) 88 89 ib/adapters/tavor/%.check: ib/adapters/tavor/%.h 90 $(DOT_H_CHECK) 91 92 ib/adapters/hermon/%.check: ib/adapters/hermon/%.h 93 $(DOT_H_CHECK) 94 95 ib/adapters/%.check: ib/adapters/%.h 96 $(DOT_H_CHECK) 97 98 idm/%.check: idm/%.h 99 $(DOT_H_CHECK) 100 101 iscsit/%.check: iscsit/%.h 102 $(DOT_H_CHECK) 103 104 lvm/%.check: lvm/%.h 105 $(DOT_H_CHECK) 106 107 scsi/%.check: scsi/%.h 108 $(DOT_H_CHECK) 109 110 scsi/conf/%.check: scsi/conf/%.h 111 $(DOT_H_CHECK) 112 113 scsi/generic/%.check: scsi/generic/%.h 114 $(DOT_H_CHECK) 115 116 scsi/impl/%.check: scsi/impl/%.h 117 $(DOT_H_CHECK) 118 119 scsi/targets/%.check: scsi/targets/%.h 120 $(DOT_H_CHECK) 121 122 scsi/adapters/%.check: scsi/adapters/%.h 123 $(DOT_H_CHECK) 124 125 sdcard/%.check: sdcard/%.h 126 $(DOT_H_CHECK) 127 128 sysevent/%.check: sysevent/%.h 129 $(DOT_H_CHECK) 130 131 contract/%.check: contract/%.h 132 $(DOT_H_CHECK) 133 134 usb/%.check: usb/%.h 135 $(DOT_H_CHECK) 136 137 usb/clients/audio/%.check: usb/clients/audio/%.h 138 $(DOT_H_CHECK) 139 140 usb/hubd/%.check: usb/hubd/%.h 141 $(DOT_H_CHECK) 142 143 usb/clients/hid/%.check: usb/clients/hid/%.h 144 $(DOT_H_CHECK) 145 146 usb/clients/hwarc/%.check: usb/clients/hwarc/%.h 147 $(DOT_H_CHECK) 148 149 usb/clients/mass_storage/%.check: usb/clients/mass_storage/%.h 150 $(DOT_H_CHECK) 151 152 usb/clients/printer/%.check: usb/clients/printer/%.h 153 $(DOT_H_CHECK) 154 155 usb/clients/usbcdc/%.check: usb/clients/usbcdc/%.h 156 $(DOT_H_CHECK) 157 158 usb/clients/video/usbvc/%.check: usb/clients/video/usbvc/%.h 159 $(DOT_H_CHECK) 160 161 usb/clients/usbinput/usbwcm/%.check: usb/clients/usbinput/usbwcm/%.h 162 $(DOT_H_CHECK) 163 164 1394/%.check: 1394/%.h 165 $(DOT_H_CHECK) 166 167 rsm/%.check: rsm/%.h 168 $(DOT_H_CHECK) 169 170 tsol/%.check: tsol/%.h 171 $(DOT_H_CHECK) 172 173 ROOTDIR= $(ROOT)/usr/include/sys 174 175 ROOTDKTPDIR= $(ROOTDIR)/dktp 176 177 sparc_ROOTDIRS= $(ROOTDKTPDIR) $(ROOTDIR)/scsi/adapters \ 178 $(ROOTDIR)/scsi/targets 179 180 i386_ROOTDIRS= $(ROOTDKTPDIR) $(ROOTDIR)/scsi/adapters $(ROOTDIR)/scsi/targets \ 181 $(ROOTDIR)/agp $(ROOTDIR)/sata 182 183 ROOTDIRS= \ 184 $(ROOTDIR) \ 185 $(ROOTDIR)/audio \ 186 $(ROOTDIR)/av \ 187 $(ROOTDIR)/hotplug \ 188 $(ROOTDIR)/hotplug/pci \ 189 $(ROOTDIR)/crypto \ 190 $(ROOTDIR)/dcam \ 191 $(ROOTDIR)/iso \ 192 $(ROOTDIR)/fc4 \ 193 $(ROOTDIR)/fibre-channel \ 194 $(ROOTDIR)/fibre-channel/impl \ 195 $(ROOTDIR)/fibre-channel/ulp \ 196 $(ROOTDIR)/fm \ 197 $(ROOTDIR)/fm/cpu \ 198 $(ROOTDIR)/fm/fs \ 199 $(ROOTDIR)/fm/io \ 200 $(ROOTDIR)/fs \ 201 $(ROOTDIR)/ib \ 202 $(ROOTDIR)/ib/adapters/tavor \ 203 $(ROOTDIR)/ib/adapters/hermon \ 204 $(ROOTDIR)/ib/adapters \ 205 $(ROOTDIR)/ib/ibtl \ 206 $(ROOTDIR)/ib/ibtl/impl \ 207 $(ROOTDIR)/ib/mgt \ 208 $(ROOTDIR)/ib/mgt/ibmf \ 209 $(ROOTDIR)/ib/ibnex \ 210 $(ROOTDIR)/ib/clients/ibd \ 211 $(ROOTDIR)/ib/clients/of \ 212 $(ROOTDIR)/ib/clients/of/rdma \ 213 $(ROOTDIR)/ib/clients/of/sol_ofs \ 214 $(ROOTDIR)/ib/clients/of/sol_uverbs \ 215 $(ROOTDIR)/ib/clients/of/sol_umad \ 216 $(ROOTDIR)/ib/clients/of/sol_ucma \ 217 $(ROOTDIR)/idm \ 218 $(ROOTDIR)/iscsit \ 219 $(ROOTDIR)/lvm \ 220 $(ROOTDIR)/scsi \ 221 $(ROOTDIR)/scsi/conf \ 222 $(ROOTDIR)/scsi/generic \ 223 $(ROOTDIR)/scsi/impl \ 224 $(ROOTDIR)/sdcard \ 225 $(ROOTDIR)/sysevent \ 226 $(ROOTDIR)/contract \ 227 $(ROOTDIR)/usb \ 228 $(ROOTDIR)/usb/hubd \ 229 $(ROOTDIR)/usb/clients \ 230 $(ROOTDIR)/usb/clients/audio \ 231 $(ROOTDIR)/usb/clients/hid \ 232 $(ROOTDIR)/usb/clients/hwarc \ 233 $(ROOTDIR)/usb/clients/mass_storage \ 234 $(ROOTDIR)/usb/clients/printer \ 235 $(ROOTDIR)/usb/clients/usbcdc \ 236 $(ROOTDIR)/usb/clients/video/usbvc \ 237 $(ROOTDIR)/usb/clients/usbinput/usbwcm \ 238 $(ROOTDIR)/usb/clients/ugen \ 239 $(ROOTDIR)/uwb \ 240 $(ROOTDIR)/uwb/uwba \ 241 $(ROOTDIR)/1394 \ 242 $(ROOTDIR)/rsm \ 243 $(ROOTDIR)/tsol \ 244 $($(MACH)_ROOTDIRS) 245 246 247 ROOTHDRS= \ 248 $($(MACH)_HDRS:%=$(ROOTDIR)/%) \ 249 $(HDRS:%=$(ROOTDIR)/%) 250 251 ROOTAUDHDRS= $(AUDIOHDRS:%=$(ROOTDIR)/audio/%) 252 253 ROOTAVHDRS= $(AVHDRS:%=$(ROOTDIR)/av/%) 254 255 ROOTCRYPTOHDRS= $(CRYPTOHDRS:%=$(ROOTDIR)/crypto/%) 256 257 ROOTDCAMHDRS= $(DCAMHDRS:%=$(ROOTDIR)/dcam/%) 258 259 ROOTIBHDRS= $(IBHDRS:%=$(ROOTDIR)/ib/%) 260 ROOTIBDHDRS= $(IBDHDRS:%=$(ROOTDIR)/ib/clients/ibd/%) 261 ROOTIBTLHDRS= $(IBTLHDRS:%=$(ROOTDIR)/ib/ibtl/%) 262 ROOTIBTLIMPLHDRS= $(IBTLIMPLHDRS:%=$(ROOTDIR)/ib/ibtl/impl/%) 263 ROOTIBNEXHDRS= $(IBNEXHDRS:%=$(ROOTDIR)/ib/ibnex/%) 264 ROOTIBMGTHDRS= $(IBMGTHDRS:%=$(ROOTDIR)/ib/mgt/%) 265 ROOTIBMFHDRS= $(IBMFHDRS:%=$(ROOTDIR)/ib/mgt/ibmf/%) 266 ROOTOFHDRS= $(OFHDRS:%=$(ROOTDIR)/ib/clients/of/%) 267 ROOTRDMAHDRS= $(RDMAHDRS:%=$(ROOTDIR)/ib/clients/of/rdma/%) 268 ROOTSOL_OFSHDRS= $(SOL_OFSHDRS:%=$(ROOTDIR)/ib/clients/of/sol_ofs/%) 269 ROOTSOL_UVERBSHDRS= $(SOL_UVERBSHDRS:%=$(ROOTDIR)/ib/clients/of/sol_uverbs/%) 270 ROOTSOL_UMADHDRS= $(SOL_UMADHDRS:%=$(ROOTDIR)/ib/clients/of/sol_umad/%) 271 ROOTSOL_UCMAHDRS= $(SOL_UCMAHDRS:%=$(ROOTDIR)/ib/clients/of/sol_ucma/%) 272 ROOTTAVORHDRS= $(TAVORHDRS:%=$(ROOTDIR)/ib/adapters/tavor/%) 273 ROOTHERMONHDRS= $(HERMONHDRS:%=$(ROOTDIR)/ib/adapters/hermon/%) 274 ROOTMLNXHDRS= $(MLNXHDRS:%=$(ROOTDIR)/ib/adapters/%) 275 276 ROOTIDMHDRS= $(IDMHDRS:%=$(ROOTDIR)/idm/%) 277 ROOTISCSITHDRS= $(ISCSITHDRS:%=$(ROOTDIR)/iscsit/%) 278 279 ROOTISOHDRS= $(ISOHDRS:%=$(ROOTDIR)/iso/%) 280 281 ROOTFMHDRS= $(FMHDRS:%=$(ROOTDIR)/fm/%) 282 ROOTFMCPUHDRS= $(FMCPUHDRS:%=$(ROOTDIR)/fm/cpu/%) 283 ROOTFMIOHDRS= $(FMIOHDRS:%=$(ROOTDIR)/fm/io/%) 284 ROOTFMFSHDRS= $(FMFSHDRS:%=$(ROOTDIR)/fm/fs/%) 285 286 ROOTFSHDRS= $(FSHDRS:%=$(ROOTDIR)/fs/%) 287 288 ROOTLVMHDRS= $(ALL_LVMHDRS:%=$(ROOTDIR)/lvm/%) 289 290 ROOTSCSIHDRS= $(SCSIHDRS:%=$(ROOTDIR)/scsi/%) 291 ROOTSATAGENHDRS= $(SATAGENHDRS:%=$(ROOTDIR)/sata/%) 292 ROOTSCSICONFHDRS= $(SCSICONFHDRS:%=$(ROOTDIR)/scsi/conf/%) 293 ROOTSCSIGENHDRS= $(SCSIGENHDRS:%=$(ROOTDIR)/scsi/generic/%) 294 ROOTSCSIIMPLHDRS= $(SCSIIMPLHDRS:%=$(ROOTDIR)/scsi/impl/%) 295 ROOTSCSITARGETSHDRS= $(SCSITARGETSHDRS:%=$(ROOTDIR)/scsi/targets/%) 296 ROOTSCSICADHDRS= $(SCSICADHDRS:%=$(ROOTDIR)/scsi/adapters/%) 297 ROOTSCSIADHDRS= $(SCSICADHDRS:%=$(ROOTDIR)/scsi/adapters/%) 298 ROOTSCSIVHCIHDRS= $(SCSIVHCIHDRS:%=$(ROOTDIR)/scsi/adapters/%) 299 ROOTSCSIISCSIHDRS= $(SCSIISCSIHDRS:%=$(ROOTDIR)/scsi/adapters/%) 300 301 ROOTFC4HDRS= $(FC4HDRS:%=$(ROOTDIR)/fc4/%) 302 ROOTFCHDRS= $(FCHDRS:%=$(ROOTDIR)/fibre-channel/%) 303 ROOTFCIMPLHDRS= $(FCIMPLHDRS:%=$(ROOTDIR)/fibre-channel/impl/%) 304 ROOTFCULPHDRS= $(FCULPHDRS:%=$(ROOTDIR)/fibre-channel/ulp/%) 305 306 ROOTSDCARDHDRS= $(SDCARDHDRS:%=$(ROOTDIR)/sdcard/%) 307 308 ROOTSYSEVENTHDRS= $(SYSEVENTHDRS:%=$(ROOTDIR)/sysevent/%) 309 ROOTCONTRACTHDRS= $(CONTRACTHDRS:%=$(ROOTDIR)/contract/%) 310 311 ROOTXHDRS= $(XHDRS:%=$(ROOTDIR)/%) 312 313 ROOTUSBHDRS= $(USBHDRS:%=$(ROOTDIR)/usb/%) 314 ROOTUWBHDRS= $(UWBHDRS:%=$(ROOTDIR)/uwb/%) 315 ROOTUWBAHDRS= $(UWBAHDRS:%=$(ROOTDIR)/uwb/uwba/%) 316 ROOTUSBAUDHDRS= $(USBAUDHDRS:%=$(ROOTDIR)/usb/clients/audio/%) 317 ROOTUSBHUBDHDRS= $(USBHUBDHDRS:%=$(ROOTDIR)/usb/hubd/%) 318 ROOTUSBHIDHDRS = $(USBHIDHDRS:%=$(ROOTDIR)/usb/clients/hid/%) 319 ROOTUSBHWARCHDRS = $(USBHWARCHDRS:%=$(ROOTDIR)/usb/clients/hwarc/%) 320 ROOTUSBMSHDRS= $(USBMSHDRS:%=$(ROOTDIR)/usb/clients/mass_storage/%) 321 ROOTUSBPRNHDRS= $(USBPRNHDRS:%=$(ROOTDIR)/usb/clients/printer/%) 322 ROOTUSBCDCHDRS= $(USBCDCHDRS:%=$(ROOTDIR)/usb/clients/usbcdc/%) 323 ROOTUSBVIDHDRS= $(USBVIDHDRS:%=$(ROOTDIR)/usb/clients/video/usbvc/%) 324 ROOTUSBWCMHDRS= $(USBWCMHDRS:%=$(ROOTDIR)/usb/clients/usbinput/usbwcm/%) 325 ROOTUGENHDRS= $(UGENHDRS:%=$(ROOTDIR)/usb/clients/ugen/%) 326 327 ROOT1394HDRS= $(I1394HDRS:%=$(ROOTDIR)/1394/%) 328 329 ROOTRSMHDRS= $(RSMHDRS:%=$(ROOTDIR)/rsm/%) 330 331 ROOTSDKTPHDRS= $(SDKTPHDRS:%=$(ROOTDIR)/dktp/%) 332 ROOTDKTPHDRS= $(DKTPHDRS:%=$(ROOTDIR)/dktp/%) 333 ROOTPCHDRS= $(PCHDRS:%=$(ROOTDIR)/%) 334 ROOTHOTPLUGHDRS= $(HOTPLUGHDRS:%=$(ROOTDIR)/hotplug/%) 335 ROOTHOTPLUGPCIHDRS= $(HOTPLUGPCIHDRS:%=$(ROOTDIR)/hotplug/pci/%) 336 337 ROOTTSOLHDRS= $(TSOLHDRS:%=$(ROOTDIR)/tsol/%) 338 339 sparc_ROOTHDRS= $(ROOTSDKTPHDRS) $(ROOTSCSICADHDRS) $(ROOTSCSITARGETSHDRS) \ 340 $(ROOTUSBHDRS) $(ROOTUSBHUBDHDRS) \ 341 $(ROOTUSBAUDHDRS) $(ROOTUSBHIDHDRS) $(ROOTUSBMSHDRS) \ 342 $(ROOTUSBPRNHDRS) $(ROOTUGENHDRS) $(ROOTUSBVIDHDRS) \ 343 $(ROOTUWBHDRS) $(ROOTUWBAHDRS) $(ROOTUSBHWARCHDRS) 344 345 i386_ROOTHDRS= $(ROOTDKTPHDRS) $(ROOTPCHDRS) $(ROOTSCSITARGETSHDRS) \ 346 $(ROOTSCSIVHCIHDRS) $(ROOTHOTPLUGHDRS) \ 347 $(ROOTHOTPLUGPCIHDRS) $(ROOTSATAGENHDRS) \ 348 $(ROOTUWBHDRS) $(ROOTUWBAHDRS) $(ROOTUSBHWARCHDRS) 349 350 # install rules 351 $(ROOTDIR)/%: % 352 $(INS.file) 353 354 $(ROOTDIR)/crypto/%: crypto/% 355 $(INS.file) 356 357 $(ROOTDIR)/fc4/%: fc4/% 358 $(INS.file) 359 360 $(ROOTDIR)/fibre-channel/%: fibre-channel/% 361 $(INS.file) 362 363 $(ROOTDIR)/fibre-channel/impl/%: fibre-channel/impl/% 364 $(INS.file) 365 366 $(ROOTDIR)/fibre-channel/ulp/: fibre-channel/ulp/% 367 $(INS.file) 368 369 $(ROOTDIR)/fm/%: fm/% 370 $(INS.file) 371 372 $(ROOTDIR)/fm/cpu/%: fm/cpu/% 373 $(INS.file) 374 375 $(ROOTDIR)/fm/io/%: fm/io/% 376 $(INS.file) 377 378 $(ROOTDIR)/fs/%: fs/% 379 $(INS.file) 380 381 $(ROOTDIR)/ib/%: ib/% 382 $(INS.file) 383 384 $(ROOTDIR)/ib/clients/ibd/%: ib/clients/ibd/% 385 $(INS.file) 386 387 $(ROOTDIR)/ib/clients/of/%: of/% 388 $(INS.file) 389 390 $(ROOTDIR)/ib/clients/of/rdma/%: ib/clients/of/rdma/% 391 $(INS.file) 392 393 $(ROOTDIR)/ib/clients/of/sol_ofs/%: ib/clients/of/sol_ofs/% 394 $(INS.file) 395 396 $(ROOTDIR)/ib/clients/of/sol_uverbs/%: ib/clients/of/sol_uverbs/% 397 $(INS.file) 398 399 $(ROOTDIR)/ib/clients/of/sol_umad/%: ib/clients/of/sol_umad/% 400 $(INS.file) 401 402 $(ROOTDIR)/ib/clients/of/sol_ucma/%: ib/clients/of/sol_ucma/% 403 $(INS.file) 404 405 $(ROOTDIR)/ib/ibtl/%: ib/ibtl/% 406 $(INS.file) 407 408 $(ROOTDIR)/ib/ibtl/impl/%: ib/ibtl/impl/% 409 $(INS.file) 410 411 $(ROOTDIR)/ib/ibnex/%: ib/ibnex/% 412 $(INS.file) 413 414 $(ROOTDIR)/ib/mgt/%: ib/mgt/% 415 $(INS.file) 416 417 $(ROOTDIR)/ib/mgt/ibmf/%: ib/mgt/ibmf/% 418 $(INS.file) 419 420 $(ROOTDIR)/ib/adapters/tavor/%: ib/adapters/tavor/% 421 $(INS.file) 422 423 $(ROOTDIR)/ib/adapters/hermon/%: ib/adapters/hermon/% 424 $(INS.file) 425 426 $(ROOTDIR)/ib/adapters/%: ib/adapters/% 427 $(INS.file) 428 429 $(ROOTDIR)/lvm/%: lvm/% 430 $(INS.file) 431 432 $(ROOTDIR)/scsi/%: scsi/% 433 $(INS.file) 434 435 $(ROOTDIR)/scsi/conf/%: scsi/conf/% 436 $(INS.file) 437 438 $(ROOTDIR)/scsi/generic/%: scsi/generic/% 439 $(INS.file) 440 441 $(ROOTDIR)/scsi/impl/%: scsi/impl/% 442 $(INS.file) 443 444 $(ROOTDIR)/scsi/targets/%: scsi/targets/% 445 $(INS.file) 446 447 $(ROOTDIR)/scsi/adapters/%: scsi/adapters/% 448 $(INS.file) 449 450 $(ROOTDIR)/sdcard/%: sdcard/% 451 $(INS.file) 452 453 $(ROOTDIR)/sysevent/%: sysevent/% 454 $(INS.file) 455 456 $(ROOTDIR)/contract/%: contract/% 457 $(INS.file) 458 459 $(ROOTDIR)/usb/%: usb/% 460 $(INS.file) 461 462 $(ROOTDIR)/usb/hubd/%: usb/hubd/% 463 $(INS.file) 464 465 $(ROOTDIR)/usb/clients/hid/%: usb/clients/hid/% 466 $(INS.file) 467 468 $(ROOTDIR)/usb/clients/mass_storage/%: usb/clients/mass_storage/% 469 $(INS.file) 470 471 $(ROOTDIR)/dktp/%: dktp/% 472 $(INS.file) 473 474 $(ROOTDIR)/1394/%: 1394/% 475 $(INS.file) 476 477 $(ROOTDIR)/rsm/%: rsm/% 478 $(INS.file) 479 480 $(ROOTDIR)/tsol/%: tsol/% 481 $(INS.file) 482 483 $(ROOTDIRS): 484 $(INS.dir) 485