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.
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.
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]
21 # Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
22 # Copyright 2014 Garrett D'Amore <garrett@damore.org>
25 # Common definitions for open and closed headers.
27 # check files really don't exist
29 audio/%.check: audio/%.h
38 fm/cpu/%.check: fm/cpu/%.h
41 fm/fs/%.check: fm/fs/%.h
44 fm/io/%.check: fm/io/%.h
53 ib/clients/ibd/%.check: ib/clients/ibd/%.h
56 ib/clients/of/%.check: ib/clients/of/%.h
59 ib/clients/of/rdma/%.check: ib/clients/of/rdma/%.h
62 ib/clients/of/sol_ofs/%.check: ib/clients/of/sol_ofs/%.h
65 ib/clients/of/sol_uverbs/%.check: ib/clients/of/sol_uverbs/%.h
68 ib/clients/of/sol_umad/%.check: ib/clients/of/sol_umad/%.h
71 ib/clients/of/sol_ucma/%.check: ib/clients/of/sol_ucma/%.h
74 ib/ibtl/%.check: ib/ibtl/%.h
77 ib/ibtl/impl/%.check: ib/ibtl/impl/%.h
80 ib/ibnex/%.check: ib/ibnex/%.h
83 ib/mgt/%.check: ib/mgt/%.h
86 ib/mgt/ibmf/%.check: ib/mgt/ibmf/%.h
89 ib/adapters/tavor/%.check: ib/adapters/tavor/%.h
92 ib/adapters/hermon/%.check: ib/adapters/hermon/%.h
95 ib/adapters/%.check: ib/adapters/%.h
101 iscsit/%.check: iscsit/%.h
107 scsi/%.check: scsi/%.h
110 scsi/conf/%.check: scsi/conf/%.h
113 scsi/generic/%.check: scsi/generic/%.h
116 scsi/impl/%.check: scsi/impl/%.h
119 scsi/targets/%.check: scsi/targets/%.h
122 scsi/adapters/%.check: scsi/adapters/%.h
125 sdcard/%.check: sdcard/%.h
128 sysevent/%.check: sysevent/%.h
131 contract/%.check: contract/%.h
137 usb/clients/audio/%.check: usb/clients/audio/%.h
140 usb/hubd/%.check: usb/hubd/%.h
143 usb/clients/hid/%.check: usb/clients/hid/%.h
146 usb/clients/mass_storage/%.check: usb/clients/mass_storage/%.h
149 usb/clients/printer/%.check: usb/clients/printer/%.h
152 usb/clients/usbcdc/%.check: usb/clients/usbcdc/%.h
155 usb/clients/video/usbvc/%.check: usb/clients/video/usbvc/%.h
158 usb/clients/usbinput/usbwcm/%.check: usb/clients/usbinput/usbwcm/%.h
161 1394/%.check: 1394/%.h
167 tsol/%.check: tsol/%.h
170 ROOTDIR= $(ROOT)/usr/include/sys
172 ROOTDKTPDIR= $(ROOTDIR)/dktp
174 sparc_ROOTDIRS= $(ROOTDKTPDIR) $(ROOTDIR)/scsi/adapters \
175 $(ROOTDIR)/scsi/targets
177 i386_ROOTDIRS= $(ROOTDKTPDIR) $(ROOTDIR)/scsi/adapters $(ROOTDIR)/scsi/targets \
178 $(ROOTDIR)/agp $(ROOTDIR)/sata
185 $(ROOTDIR)/hotplug/pci \
190 $(ROOTDIR)/fibre-channel \
191 $(ROOTDIR)/fibre-channel/impl \
192 $(ROOTDIR)/fibre-channel/ulp \
199 $(ROOTDIR)/ib/adapters/tavor \
200 $(ROOTDIR)/ib/adapters/hermon \
201 $(ROOTDIR)/ib/adapters \
203 $(ROOTDIR)/ib/ibtl/impl \
205 $(ROOTDIR)/ib/mgt/ibmf \
206 $(ROOTDIR)/ib/ibnex \
207 $(ROOTDIR)/ib/clients/ibd \
208 $(ROOTDIR)/ib/clients/of \
209 $(ROOTDIR)/ib/clients/of/rdma \
210 $(ROOTDIR)/ib/clients/of/sol_ofs \
211 $(ROOTDIR)/ib/clients/of/sol_uverbs \
212 $(ROOTDIR)/ib/clients/of/sol_umad \
213 $(ROOTDIR)/ib/clients/of/sol_ucma \
218 $(ROOTDIR)/scsi/conf \
219 $(ROOTDIR)/scsi/generic \
220 $(ROOTDIR)/scsi/impl \
222 $(ROOTDIR)/sysevent \
223 $(ROOTDIR)/contract \
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 \
242 $($(MACH)_HDRS:%=$(ROOTDIR)/%) \
243 $(HDRS:%=$(ROOTDIR)/%)
245 ROOTAUDHDRS= $(AUDIOHDRS:%=$(ROOTDIR)/audio/%)
247 ROOTAVHDRS= $(AVHDRS:%=$(ROOTDIR)/av/%)
249 ROOTCRYPTOHDRS= $(CRYPTOHDRS:%=$(ROOTDIR)/crypto/%)
251 ROOTDCAMHDRS= $(DCAMHDRS:%=$(ROOTDIR)/dcam/%)
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/%)
270 ROOTIDMHDRS= $(IDMHDRS:%=$(ROOTDIR)/idm/%)
271 ROOTISCSITHDRS= $(ISCSITHDRS:%=$(ROOTDIR)/iscsit/%)
273 ROOTISOHDRS= $(ISOHDRS:%=$(ROOTDIR)/iso/%)
275 ROOTFMHDRS= $(FMHDRS:%=$(ROOTDIR)/fm/%)
276 ROOTFMCPUHDRS= $(FMCPUHDRS:%=$(ROOTDIR)/fm/cpu/%)
277 ROOTFMIOHDRS= $(FMIOHDRS:%=$(ROOTDIR)/fm/io/%)
278 ROOTFMFSHDRS= $(FMFSHDRS:%=$(ROOTDIR)/fm/fs/%)
280 ROOTFSHDRS= $(FSHDRS:%=$(ROOTDIR)/fs/%)
282 ROOTLVMHDRS= $(ALL_LVMHDRS:%=$(ROOTDIR)/lvm/%)
284 ROOTSCSIHDRS= $(SCSIHDRS:%=$(ROOTDIR)/scsi/%)
285 ROOTSATAGENHDRS= $(SATAGENHDRS:%=$(ROOTDIR)/sata/%)
286 ROOTSCSICONFHDRS= $(SCSICONFHDRS:%=$(ROOTDIR)/scsi/conf/%)
287 ROOTSCSIGENHDRS= $(SCSIGENHDRS:%=$(ROOTDIR)/scsi/generic/%)
288 ROOTSCSIIMPLHDRS= $(SCSIIMPLHDRS:%=$(ROOTDIR)/scsi/impl/%)
289 ROOTSCSITARGETSHDRS= $(SCSITARGETSHDRS:%=$(ROOTDIR)/scsi/targets/%)
290 ROOTSCSICADHDRS= $(SCSICADHDRS:%=$(ROOTDIR)/scsi/adapters/%)
291 ROOTSCSIADHDRS= $(SCSICADHDRS:%=$(ROOTDIR)/scsi/adapters/%)
292 ROOTSCSIVHCIHDRS= $(SCSIVHCIHDRS:%=$(ROOTDIR)/scsi/adapters/%)
293 ROOTSCSIISCSIHDRS= $(SCSIISCSIHDRS:%=$(ROOTDIR)/scsi/adapters/%)
295 ROOTFC4HDRS= $(FC4HDRS:%=$(ROOTDIR)/fc4/%)
296 ROOTFCHDRS= $(FCHDRS:%=$(ROOTDIR)/fibre-channel/%)
297 ROOTFCIMPLHDRS= $(FCIMPLHDRS:%=$(ROOTDIR)/fibre-channel/impl/%)
298 ROOTFCULPHDRS= $(FCULPHDRS:%=$(ROOTDIR)/fibre-channel/ulp/%)
300 ROOTSDCARDHDRS= $(SDCARDHDRS:%=$(ROOTDIR)/sdcard/%)
302 ROOTSYSEVENTHDRS= $(SYSEVENTHDRS:%=$(ROOTDIR)/sysevent/%)
303 ROOTCONTRACTHDRS= $(CONTRACTHDRS:%=$(ROOTDIR)/contract/%)
305 ROOTXHDRS= $(XHDRS:%=$(ROOTDIR)/%)
307 ROOTUSBHDRS= $(USBHDRS:%=$(ROOTDIR)/usb/%)
308 ROOTUSBAUDHDRS= $(USBAUDHDRS:%=$(ROOTDIR)/usb/clients/audio/%)
309 ROOTUSBHUBDHDRS= $(USBHUBDHDRS:%=$(ROOTDIR)/usb/hubd/%)
310 ROOTUSBHIDHDRS = $(USBHIDHDRS:%=$(ROOTDIR)/usb/clients/hid/%)
311 ROOTUSBMSHDRS= $(USBMSHDRS:%=$(ROOTDIR)/usb/clients/mass_storage/%)
312 ROOTUSBPRNHDRS= $(USBPRNHDRS:%=$(ROOTDIR)/usb/clients/printer/%)
313 ROOTUSBCDCHDRS= $(USBCDCHDRS:%=$(ROOTDIR)/usb/clients/usbcdc/%)
314 ROOTUSBVIDHDRS= $(USBVIDHDRS:%=$(ROOTDIR)/usb/clients/video/usbvc/%)
315 ROOTUSBWCMHDRS= $(USBWCMHDRS:%=$(ROOTDIR)/usb/clients/usbinput/usbwcm/%)
316 ROOTUGENHDRS= $(UGENHDRS:%=$(ROOTDIR)/usb/clients/ugen/%)
318 ROOT1394HDRS= $(I1394HDRS:%=$(ROOTDIR)/1394/%)
320 ROOTRSMHDRS= $(RSMHDRS:%=$(ROOTDIR)/rsm/%)
322 ROOTSDKTPHDRS= $(SDKTPHDRS:%=$(ROOTDIR)/dktp/%)
323 ROOTDKTPHDRS= $(DKTPHDRS:%=$(ROOTDIR)/dktp/%)
324 ROOTPCHDRS= $(PCHDRS:%=$(ROOTDIR)/%)
325 ROOTHOTPLUGHDRS= $(HOTPLUGHDRS:%=$(ROOTDIR)/hotplug/%)
326 ROOTHOTPLUGPCIHDRS= $(HOTPLUGPCIHDRS:%=$(ROOTDIR)/hotplug/pci/%)
328 ROOTTSOLHDRS= $(TSOLHDRS:%=$(ROOTDIR)/tsol/%)
330 sparc_ROOTHDRS= $(ROOTSDKTPHDRS) $(ROOTSCSICADHDRS) $(ROOTSCSITARGETSHDRS) \
331 $(ROOTUSBHDRS) $(ROOTUSBHUBDHDRS) \
332 $(ROOTUSBAUDHDRS) $(ROOTUSBHIDHDRS) $(ROOTUSBMSHDRS) \
333 $(ROOTUSBPRNHDRS) $(ROOTUGENHDRS) $(ROOTUSBVIDHDRS)
335 i386_ROOTHDRS= $(ROOTDKTPHDRS) $(ROOTPCHDRS) $(ROOTSCSITARGETSHDRS) \
336 $(ROOTSCSIVHCIHDRS) $(ROOTHOTPLUGHDRS) \
337 $(ROOTHOTPLUGPCIHDRS) $(ROOTSATAGENHDRS)
343 $(ROOTDIR)/crypto/%: crypto/%
346 $(ROOTDIR)/fc4/%: fc4/%
349 $(ROOTDIR)/fibre-channel/%: fibre-channel/%
352 $(ROOTDIR)/fibre-channel/impl/%: fibre-channel/impl/%
355 $(ROOTDIR)/fibre-channel/ulp/: fibre-channel/ulp/%
358 $(ROOTDIR)/fm/%: fm/%
361 $(ROOTDIR)/fm/cpu/%: fm/cpu/%
364 $(ROOTDIR)/fm/io/%: fm/io/%
367 $(ROOTDIR)/fs/%: fs/%
370 $(ROOTDIR)/ib/%: ib/%
373 $(ROOTDIR)/ib/clients/ibd/%: ib/clients/ibd/%
376 $(ROOTDIR)/ib/clients/of/%: of/%
379 $(ROOTDIR)/ib/clients/of/rdma/%: ib/clients/of/rdma/%
382 $(ROOTDIR)/ib/clients/of/sol_ofs/%: ib/clients/of/sol_ofs/%
385 $(ROOTDIR)/ib/clients/of/sol_uverbs/%: ib/clients/of/sol_uverbs/%
388 $(ROOTDIR)/ib/clients/of/sol_umad/%: ib/clients/of/sol_umad/%
391 $(ROOTDIR)/ib/clients/of/sol_ucma/%: ib/clients/of/sol_ucma/%
394 $(ROOTDIR)/ib/ibtl/%: ib/ibtl/%
397 $(ROOTDIR)/ib/ibtl/impl/%: ib/ibtl/impl/%
400 $(ROOTDIR)/ib/ibnex/%: ib/ibnex/%
403 $(ROOTDIR)/ib/mgt/%: ib/mgt/%
406 $(ROOTDIR)/ib/mgt/ibmf/%: ib/mgt/ibmf/%
409 $(ROOTDIR)/ib/adapters/tavor/%: ib/adapters/tavor/%
412 $(ROOTDIR)/ib/adapters/hermon/%: ib/adapters/hermon/%
415 $(ROOTDIR)/ib/adapters/%: ib/adapters/%
418 $(ROOTDIR)/lvm/%: lvm/%
421 $(ROOTDIR)/scsi/%: scsi/%
424 $(ROOTDIR)/scsi/conf/%: scsi/conf/%
427 $(ROOTDIR)/scsi/generic/%: scsi/generic/%
430 $(ROOTDIR)/scsi/impl/%: scsi/impl/%
433 $(ROOTDIR)/scsi/targets/%: scsi/targets/%
436 $(ROOTDIR)/scsi/adapters/%: scsi/adapters/%
439 $(ROOTDIR)/sdcard/%: sdcard/%
442 $(ROOTDIR)/sysevent/%: sysevent/%
445 $(ROOTDIR)/contract/%: contract/%
448 $(ROOTDIR)/usb/%: usb/%
451 $(ROOTDIR)/usb/hubd/%: usb/hubd/%
454 $(ROOTDIR)/usb/clients/hid/%: usb/clients/hid/%
457 $(ROOTDIR)/usb/clients/mass_storage/%: usb/clients/mass_storage/%
460 $(ROOTDIR)/dktp/%: dktp/%
463 $(ROOTDIR)/1394/%: 1394/%
466 $(ROOTDIR)/rsm/%: rsm/%
469 $(ROOTDIR)/tsol/%: tsol/%