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