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