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 2008 Sun Microsystems, Inc. All rights reserved. 22# Use is subject to license terms. 23# 24 25# Common definitions for open and closed headers. 26 27# check files really don't exist 28 29audio/%.check: audio/%.h 30 $(DOT_H_CHECK) 31 32av/%.check: av/%.h 33 $(DOT_H_CHECK) 34 35fm/%.check: fm/%.h 36 $(DOT_H_CHECK) 37 38fm/cpu/%.check: fm/cpu/%.h 39 $(DOT_H_CHECK) 40 41fm/fs/%.check: fm/fs/%.h 42 $(DOT_H_CHECK) 43 44fm/io/%.check: fm/io/%.h 45 $(DOT_H_CHECK) 46 47fs/%.check: fs/%.h 48 $(DOT_H_CHECK) 49 50ib/%.check: ib/%.h 51 $(DOT_H_CHECK) 52 53ib/clients/ibd/%.check: ib/clients/ibd/%.h 54 $(DOT_H_CHECK) 55 56ib/ibtl/%.check: ib/ibtl/%.h 57 $(DOT_H_CHECK) 58 59ib/ibtl/impl/%.check: ib/ibtl/impl/%.h 60 $(DOT_H_CHECK) 61 62ib/ibnex/%.check: ib/ibnex/%.h 63 $(DOT_H_CHECK) 64 65ib/mgt/%.check: ib/mgt/%.h 66 $(DOT_H_CHECK) 67 68ib/mgt/ibmf/%.check: ib/mgt/ibmf/%.h 69 $(DOT_H_CHECK) 70 71ib/adapters/tavor/%.check: ib/adapters/tavor/%.h 72 $(DOT_H_CHECK) 73 74ib/adapters/hermon/%.check: ib/adapters/hermon/%.h 75 $(DOT_H_CHECK) 76 77lvm/%.check: lvm/%.h 78 $(DOT_H_CHECK) 79 80pcmcia/%.check: pcmcia/%.h 81 $(DOT_H_CHECK) 82 83scsi/%.check: scsi/%.h 84 $(DOT_H_CHECK) 85 86scsi/conf/%.check: scsi/conf/%.h 87 $(DOT_H_CHECK) 88 89scsi/generic/%.check: scsi/generic/%.h 90 $(DOT_H_CHECK) 91 92scsi/impl/%.check: scsi/impl/%.h 93 $(DOT_H_CHECK) 94 95scsi/targets/%.check: scsi/targets/%.h 96 $(DOT_H_CHECK) 97 98scsi/adapters/%.check: scsi/adapters/%.h 99 $(DOT_H_CHECK) 100 101sdcard/%.check: sdcard/%.h 102 $(DOT_H_CHECK) 103 104sysevent/%.check: sysevent/%.h 105 $(DOT_H_CHECK) 106 107contract/%.check: contract/%.h 108 $(DOT_H_CHECK) 109 110usb/%.check: usb/%.h 111 $(DOT_H_CHECK) 112 113usb/clients/audio/%.check: usb/clients/audio/%.h 114 $(DOT_H_CHECK) 115 116usb/hubd/%.check: usb/hubd/%.h 117 $(DOT_H_CHECK) 118 119usb/clients/hid/%.check: usb/clients/hid/%.h 120 $(DOT_H_CHECK) 121 122usb/clients/mass_storage/%.check: usb/clients/mass_storage/%.h 123 $(DOT_H_CHECK) 124 125usb/clients/hid/%.check: usb/clients/hid/%.h 126 $(DOT_H_CHECK) 127 128usb/clients/printer/%.check: usb/clients/printer/%.h 129 $(DOT_H_CHECK) 130 131usb/clients/usbcdc/%.check: usb/clients/usbcdc/%.h 132 $(DOT_H_CHECK) 133 134usb/clients/video/usbvc/%.check: usb/clients/video/usbvc/%.h 135 $(DOT_H_CHECK) 136 1371394/%.check: 1394/%.h 138 $(DOT_H_CHECK) 139 140rsm/%.check: rsm/%.h 141 $(DOT_H_CHECK) 142 143tsol/%.check: tsol/%.h 144 $(DOT_H_CHECK) 145 146ROOTDIR= $(ROOT)/usr/include/sys 147 148ROOTDKTPDIR= $(ROOTDIR)/dktp 149 150sparc_ROOTDIRS= $(ROOTDKTPDIR) $(ROOTDIR)/scsi/adapters \ 151 $(ROOTDIR)/scsi/targets \ 152 $(ROOTDIR)/av 153 154i386_ROOTDIRS= $(ROOTDKTPDIR) $(ROOTDIR)/scsi/adapters $(ROOTDIR)/scsi/targets \ 155 $(ROOTDIR)/agp $(ROOTDIR)/sata 156 157ROOTDIRS= \ 158 $(ROOTDIR) \ 159 $(ROOTDIR)/audio \ 160 $(ROOTDIR)/hotplug \ 161 $(ROOTDIR)/hotplug/pci \ 162 $(ROOTDIR)/crypto \ 163 $(ROOTDIR)/dcam \ 164 $(ROOTDIR)/iso \ 165 $(ROOTDIR)/fm \ 166 $(ROOTDIR)/fm/cpu \ 167 $(ROOTDIR)/fm/fs \ 168 $(ROOTDIR)/fm/io \ 169 $(ROOTDIR)/fs \ 170 $(ROOTDIR)/ib \ 171 $(ROOTDIR)/ib/adapters/tavor \ 172 $(ROOTDIR)/ib/adapters/hermon \ 173 $(ROOTDIR)/ib/ibtl \ 174 $(ROOTDIR)/ib/ibtl/impl \ 175 $(ROOTDIR)/ib/mgt \ 176 $(ROOTDIR)/ib/mgt/ibmf \ 177 $(ROOTDIR)/ib/ibnex \ 178 $(ROOTDIR)/ib/clients/ibd \ 179 $(ROOTDIR)/lvm \ 180 $(ROOTDIR)/pcmcia \ 181 $(ROOTDIR)/scsi \ 182 $(ROOTDIR)/scsi/conf \ 183 $(ROOTDIR)/scsi/generic \ 184 $(ROOTDIR)/scsi/impl \ 185 $(ROOTDIR)/fc4 \ 186 $(ROOTDIR)/sdcard \ 187 $(ROOTDIR)/sysevent \ 188 $(ROOTDIR)/contract \ 189 $(ROOTDIR)/usb \ 190 $(ROOTDIR)/usb/hubd \ 191 $(ROOTDIR)/usb/clients \ 192 $(ROOTDIR)/usb/clients/audio \ 193 $(ROOTDIR)/usb/clients/hid \ 194 $(ROOTDIR)/usb/clients/mass_storage \ 195 $(ROOTDIR)/usb/clients/printer \ 196 $(ROOTDIR)/usb/clients/usbcdc \ 197 $(ROOTDIR)/usb/clients/video/usbvc \ 198 $(ROOTDIR)/usb/clients/ugen \ 199 $(ROOTDIR)/1394 \ 200 $(ROOTDIR)/rsm \ 201 $(ROOTDIR)/tsol \ 202 $($(MACH)_ROOTDIRS) 203 204 205ROOTHDRS= \ 206 $($(MACH)_HDRS:%=$(ROOTDIR)/%) \ 207 $(HDRS:%=$(ROOTDIR)/%) 208 209ROOTAUDHDRS= $(AUDIOHDRS:%=$(ROOTDIR)/audio/%) 210 211ROOTAVHDRS= $(AVHDRS:%=$(ROOTDIR)/av/%) 212 213ROOTCRYPTOHDRS= $(CRYPTOHDRS:%=$(ROOTDIR)/crypto/%) 214 215ROOTDCAMHDRS= $(DCAMHDRS:%=$(ROOTDIR)/dcam/%) 216 217ROOTIBHDRS= $(IBHDRS:%=$(ROOTDIR)/ib/%) 218ROOTIBDHDRS= $(IBDHDRS:%=$(ROOTDIR)/ib/clients/ibd/%) 219ROOTIBTLHDRS= $(IBTLHDRS:%=$(ROOTDIR)/ib/ibtl/%) 220ROOTIBTLIMPLHDRS= $(IBTLIMPLHDRS:%=$(ROOTDIR)/ib/ibtl/impl/%) 221ROOTIBNEXHDRS= $(IBNEXHDRS:%=$(ROOTDIR)/ib/ibnex/%) 222ROOTIBMGTHDRS= $(IBMGTHDRS:%=$(ROOTDIR)/ib/mgt/%) 223ROOTIBMFHDRS= $(IBMFHDRS:%=$(ROOTDIR)/ib/mgt/ibmf/%) 224ROOTTAVORHDRS= $(TAVORHDRS:%=$(ROOTDIR)/ib/adapters/tavor/%) 225ROOTHERMONHDRS= $(HERMONHDRS:%=$(ROOTDIR)/ib/adapters/hermon/%) 226 227ROOTISOHDRS= $(ISOHDRS:%=$(ROOTDIR)/iso/%) 228 229ROOTFMHDRS= $(FMHDRS:%=$(ROOTDIR)/fm/%) 230ROOTFMCPUHDRS= $(FMCPUHDRS:%=$(ROOTDIR)/fm/cpu/%) 231ROOTFMIOHDRS= $(FMIOHDRS:%=$(ROOTDIR)/fm/io/%) 232ROOTFMFSHDRS= $(FMFSHDRS:%=$(ROOTDIR)/fm/fs/%) 233 234ROOTFSHDRS= $(FSHDRS:%=$(ROOTDIR)/fs/%) 235 236ROOTLVMHDRS= $(ALL_LVMHDRS:%=$(ROOTDIR)/lvm/%) 237 238ROOTPCMCIAHDRS= $(PCMCIAHDRS:%=$(ROOTDIR)/pcmcia/%) 239 240ROOTSCSIHDRS= $(SCSIHDRS:%=$(ROOTDIR)/scsi/%) 241ROOTSATAGENHDRS= $(SATAGENHDRS:%=$(ROOTDIR)/sata/%) 242ROOTSCSICONFHDRS= $(SCSICONFHDRS:%=$(ROOTDIR)/scsi/conf/%) 243ROOTSCSIGENHDRS= $(SCSIGENHDRS:%=$(ROOTDIR)/scsi/generic/%) 244ROOTSCSIIMPLHDRS= $(SCSIIMPLHDRS:%=$(ROOTDIR)/scsi/impl/%) 245ROOTSCSITARGETSHDRS= $(SCSITARGETSHDRS:%=$(ROOTDIR)/scsi/targets/%) 246ROOTSCSICADHDRS= $(SCSICADHDRS:%=$(ROOTDIR)/scsi/adapters/%) 247ROOTSCSIADHDRS= $(SCSICADHDRS:%=$(ROOTDIR)/scsi/adapters/%) 248ROOTSCSIVHCIHDRS= $(SCSIVHCIHDRS:%=$(ROOTDIR)/scsi/adapters/%) 249 250ROOTFCHDRS= $(FCHDRS:%=$(ROOTDIR)/fc4/%) 251 252ROOTSDCARDHDRS= $(SDCARDHDRS:%=$(ROOTDIR)/sdcard/%) 253 254ROOTSYSEVENTHDRS= $(SYSEVENTHDRS:%=$(ROOTDIR)/sysevent/%) 255ROOTCONTRACTHDRS= $(CONTRACTHDRS:%=$(ROOTDIR)/contract/%) 256 257ROOTXHDRS= $(XHDRS:%=$(ROOTDIR)/%) 258 259ROOTUSBHDRS= $(USBHDRS:%=$(ROOTDIR)/usb/%) 260ROOTUSBAUDHDRS= $(USBAUDHDRS:%=$(ROOTDIR)/usb/clients/audio/%) 261ROOTUSBHUBDHDRS= $(USBHUBDHDRS:%=$(ROOTDIR)/usb/hubd/%) 262ROOTUSBHIDHDRS = $(USBHIDHDRS:%=$(ROOTDIR)/usb/clients/hid/%) 263ROOTUSBMSHDRS= $(USBMSHDRS:%=$(ROOTDIR)/usb/clients/mass_storage/%) 264ROOTUSBPRNHDRS= $(USBPRNHDRS:%=$(ROOTDIR)/usb/clients/printer/%) 265ROOTUSBCDCHDRS= $(USBCDCHDRS:%=$(ROOTDIR)/usb/clients/usbcdc/%) 266ROOTUSBVIDHDRS= $(USBVIDHDRS:%=$(ROOTDIR)/usb/clients/video/usbvc/%) 267ROOTUGENHDRS= $(UGENHDRS:%=$(ROOTDIR)/usb/clients/ugen/%) 268 269ROOT1394HDRS= $(I1394HDRS:%=$(ROOTDIR)/1394/%) 270 271ROOTRSMHDRS= $(RSMHDRS:%=$(ROOTDIR)/rsm/%) 272 273ROOTSDKTPHDRS= $(SDKTPHDRS:%=$(ROOTDIR)/dktp/%) 274ROOTDKTPHDRS= $(DKTPHDRS:%=$(ROOTDIR)/dktp/%) 275ROOTPCHDRS= $(PCHDRS:%=$(ROOTDIR)/%) 276ROOTHOTPLUGHDRS= $(HOTPLUGHDRS:%=$(ROOTDIR)/hotplug/%) 277ROOTHOTPLUGPCIHDRS= $(HOTPLUGPCIHDRS:%=$(ROOTDIR)/hotplug/pci/%) 278 279ROOTTSOLHDRS= $(TSOLHDRS:%=$(ROOTDIR)/tsol/%) 280 281sparc_ROOTHDRS= $(ROOTSDKTPHDRS) $(ROOTSCSICADHDRS) $(ROOTSCSITARGETSHDRS) \ 282 $(ROOTFCHDRS) $(ROOTUSBHDRS) $(ROOTUSBHUBDHDRS) $(ROOTPCMCIAHDRS) \ 283 $(ROOTUSBAUDHDRS) \ 284 $(ROOTUSBHIDHDRS) $(ROOTUSBMSHDRS) $(ROOTUSBPRNHDRS) \ 285 $(ROOTUGENHDRS) $(ROOTUSBVIDHDRS) 286 287i386_ROOTHDRS= $(ROOTDKTPHDRS) $(ROOTPCHDRS) $(ROOTSCSITARGETSHDRS) \ 288 $(ROOTSCSIVHCIHDRS) $(ROOTFCHDRS) \ 289 $(ROOTPCMCIAHDRS) $(ROOTHOTPLUGHDRS) \ 290 $(ROOTHOTPLUGPCIHDRS) $(ROOTSATAGENHDRS) 291 292# install rules 293$(ROOTDIR)/%: % 294 $(INS.file) 295 296$(ROOTDIR)/crypto/%: crypto/% 297 $(INS.file) 298 299$(ROOTDIR)/fm/%: fm/% 300 $(INS.file) 301 302$(ROOTDIR)/fm/cpu/%: fm/cpu/% 303 $(INS.file) 304 305$(ROOTDIR)/fm/io/%: fm/io/% 306 $(INS.file) 307 308$(ROOTDIR)/fs/%: fs/% 309 $(INS.file) 310 311$(ROOTDIR)/ib/%: ib/% 312 $(INS.file) 313 314$(ROOTDIR)/ib/clients/ibd/%: ib/clients/ibd/% 315 $(INS.file) 316 317$(ROOTDIR)/ib/ibtl/%: ib/ibtl/% 318 $(INS.file) 319 320$(ROOTDIR)/ib/ibtl/impl/%: ib/ibtl/impl/% 321 $(INS.file) 322 323$(ROOTDIR)/ib/ibnex/%: ib/ibnex/% 324 $(INS.file) 325 326$(ROOTDIR)/ib/mgt/%: ib/mgt/% 327 $(INS.file) 328 329$(ROOTDIR)/ib/mgt/ibmf/%: ib/mgt/ibmf/% 330 $(INS.file) 331 332$(ROOTDIR)/ib/adapters/tavor/%: ib/adapters/tavor/% 333 $(INS.file) 334 335$(ROOTDIR)/ib/adapters/hermon/%: ib/adapters/hermon/% 336 $(INS.file) 337 338$(ROOTDIR)/lvm/%: lvm/% 339 $(INS.file) 340 341$(ROOTDIR)/pcmcia/%: pcmcia/% 342 $(INS.file) 343 344$(ROOTDIR)/scsi/%: scsi/% 345 $(INS.file) 346 347$(ROOTDIR)/scsi/conf/%: scsi/conf/% 348 $(INS.file) 349 350$(ROOTDIR)/scsi/generic/%: scsi/generic/% 351 $(INS.file) 352 353$(ROOTDIR)/scsi/impl/%: scsi/impl/% 354 $(INS.file) 355 356$(ROOTDIR)/scsi/targets/%: scsi/targets/% 357 $(INS.file) 358 359$(ROOTDIR)/fc4/%: fc4/% 360 $(INS.file) 361 362$(ROOTDIR)/sdcard/%: sdcard/% 363 $(INS.file) 364 365$(ROOTDIR)/sysevent/%: sysevent/% 366 $(INS.file) 367 368$(ROOTDIR)/contract/%: contract/% 369 $(INS.file) 370 371$(ROOTDIR)/usb/%: usb/% 372 $(INS.file) 373 374$(ROOTDIR)/usb/hubd/%: usb/hubd/% 375 $(INS.file) 376 377$(ROOTDIR)/usb/clients/hid/%: usb/clients/hid/% 378 $(INS.file) 379 380$(ROOTDIR)/usb/clients/mass_storage/%: usb/clients/mass_storage/% 381 $(INS.file) 382 383$(ROOTDIR)/dktp/%: dktp/% 384 $(INS.file) 385 386$(ROOTDIR)/1394/%: 1394/% 387 $(INS.file) 388 389$(ROOTDIR)/rsm/%: rsm/% 390 $(INS.file) 391 392$(ROOTDIR)/tsol/%: tsol/% 393 $(INS.file) 394 395$(ROOTDIRS): 396 $(INS.dir) 397 398