xref: /titanic_51/usr/src/uts/common/sys/Makefile.syshdrs (revision cf988fac1debd92859f8068ee3d3e53782043469)
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
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/clients/of/%.check:		ib/clients/of/%.h
57	$(DOT_H_CHECK)
58
59ib/clients/of/rdma/%.check:		ib/clients/of/rdma/%.h
60	$(DOT_H_CHECK)
61
62ib/clients/of/sol_ofs/%.check:		ib/clients/of/sol_ofs/%.h
63	$(DOT_H_CHECK)
64
65ib/clients/of/sol_uverbs/%.check:	ib/clients/of/sol_uverbs/%.h
66	$(DOT_H_CHECK)
67
68ib/clients/of/sol_umad/%.check:		ib/clients/of/sol_umad/%.h
69	$(DOT_H_CHECK)
70
71ib/clients/of/sol_ucma/%.check:		ib/clients/of/sol_ucma/%.h
72	$(DOT_H_CHECK)
73
74ib/ibtl/%.check:	ib/ibtl/%.h
75	$(DOT_H_CHECK)
76
77ib/ibtl/impl/%.check:	ib/ibtl/impl/%.h
78	$(DOT_H_CHECK)
79
80ib/ibnex/%.check:	ib/ibnex/%.h
81	$(DOT_H_CHECK)
82
83ib/mgt/%.check:	ib/mgt/%.h
84	$(DOT_H_CHECK)
85
86ib/mgt/ibmf/%.check:	ib/mgt/ibmf/%.h
87	$(DOT_H_CHECK)
88
89ib/adapters/tavor/%.check:	ib/adapters/tavor/%.h
90	$(DOT_H_CHECK)
91
92ib/adapters/hermon/%.check:	ib/adapters/hermon/%.h
93	$(DOT_H_CHECK)
94
95ib/adapters/%.check:	ib/adapters/%.h
96	$(DOT_H_CHECK)
97
98idm/%.check:		idm/%.h
99	$(DOT_H_CHECK)
100
101iscsit/%.check:		iscsit/%.h
102	$(DOT_H_CHECK)
103
104lvm/%.check:	lvm/%.h
105	$(DOT_H_CHECK)
106
107scsi/%.check:		scsi/%.h
108	$(DOT_H_CHECK)
109
110scsi/conf/%.check:	scsi/conf/%.h
111	$(DOT_H_CHECK)
112
113scsi/generic/%.check:	scsi/generic/%.h
114	$(DOT_H_CHECK)
115
116scsi/impl/%.check:	scsi/impl/%.h
117	$(DOT_H_CHECK)
118
119scsi/targets/%.check:	scsi/targets/%.h
120	$(DOT_H_CHECK)
121
122scsi/adapters/%.check:	scsi/adapters/%.h
123	$(DOT_H_CHECK)
124
125sdcard/%.check:		sdcard/%.h
126	$(DOT_H_CHECK)
127
128sysevent/%.check:     sysevent/%.h
129	$(DOT_H_CHECK)
130
131contract/%.check:     contract/%.h
132	$(DOT_H_CHECK)
133
134usb/%.check:		usb/%.h
135	$(DOT_H_CHECK)
136
137usb/clients/audio/%.check:  usb/clients/audio/%.h
138	$(DOT_H_CHECK)
139
140usb/hubd/%.check:	usb/hubd/%.h
141	$(DOT_H_CHECK)
142
143usb/clients/hid/%.check:	usb/clients/hid/%.h
144	$(DOT_H_CHECK)
145
146usb/clients/hwarc/%.check:	usb/clients/hwarc/%.h
147	$(DOT_H_CHECK)
148
149usb/clients/mass_storage/%.check:	usb/clients/mass_storage/%.h
150	$(DOT_H_CHECK)
151
152usb/clients/printer/%.check:  usb/clients/printer/%.h
153	$(DOT_H_CHECK)
154
155usb/clients/usbcdc/%.check:	usb/clients/usbcdc/%.h
156	$(DOT_H_CHECK)
157
158usb/clients/video/usbvc/%.check:  usb/clients/video/usbvc/%.h
159	$(DOT_H_CHECK)
160
161usb/clients/usbinput/usbwcm/%.check:	usb/clients/usbinput/usbwcm/%.h
162	$(DOT_H_CHECK)
163
1641394/%.check:         1394/%.h
165	$(DOT_H_CHECK)
166
167rsm/%.check:	rsm/%.h
168	$(DOT_H_CHECK)
169
170tsol/%.check:	tsol/%.h
171	$(DOT_H_CHECK)
172
173ROOTDIR=	$(ROOT)/usr/include/sys
174
175ROOTDKTPDIR=	$(ROOTDIR)/dktp
176
177sparc_ROOTDIRS=	$(ROOTDKTPDIR) $(ROOTDIR)/scsi/adapters \
178		$(ROOTDIR)/scsi/targets
179
180i386_ROOTDIRS=	$(ROOTDKTPDIR) $(ROOTDIR)/scsi/adapters $(ROOTDIR)/scsi/targets \
181		$(ROOTDIR)/agp $(ROOTDIR)/sata
182
183ROOTDIRS=			\
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
247ROOTHDRS=				\
248	$($(MACH)_HDRS:%=$(ROOTDIR)/%)	\
249	$(HDRS:%=$(ROOTDIR)/%)
250
251ROOTAUDHDRS= $(AUDIOHDRS:%=$(ROOTDIR)/audio/%)
252
253ROOTAVHDRS= $(AVHDRS:%=$(ROOTDIR)/av/%)
254
255ROOTCRYPTOHDRS= $(CRYPTOHDRS:%=$(ROOTDIR)/crypto/%)
256
257ROOTDCAMHDRS= $(DCAMHDRS:%=$(ROOTDIR)/dcam/%)
258
259ROOTIBHDRS= $(IBHDRS:%=$(ROOTDIR)/ib/%)
260ROOTIBDHDRS= $(IBDHDRS:%=$(ROOTDIR)/ib/clients/ibd/%)
261ROOTIBTLHDRS= $(IBTLHDRS:%=$(ROOTDIR)/ib/ibtl/%)
262ROOTIBTLIMPLHDRS= $(IBTLIMPLHDRS:%=$(ROOTDIR)/ib/ibtl/impl/%)
263ROOTIBNEXHDRS= $(IBNEXHDRS:%=$(ROOTDIR)/ib/ibnex/%)
264ROOTIBMGTHDRS= $(IBMGTHDRS:%=$(ROOTDIR)/ib/mgt/%)
265ROOTIBMFHDRS= $(IBMFHDRS:%=$(ROOTDIR)/ib/mgt/ibmf/%)
266ROOTOFHDRS= $(OFHDRS:%=$(ROOTDIR)/ib/clients/of/%)
267ROOTRDMAHDRS= $(RDMAHDRS:%=$(ROOTDIR)/ib/clients/of/rdma/%)
268ROOTSOL_OFSHDRS= $(SOL_OFSHDRS:%=$(ROOTDIR)/ib/clients/of/sol_ofs/%)
269ROOTSOL_UVERBSHDRS= $(SOL_UVERBSHDRS:%=$(ROOTDIR)/ib/clients/of/sol_uverbs/%)
270ROOTSOL_UMADHDRS= $(SOL_UMADHDRS:%=$(ROOTDIR)/ib/clients/of/sol_umad/%)
271ROOTSOL_UCMAHDRS= $(SOL_UCMAHDRS:%=$(ROOTDIR)/ib/clients/of/sol_ucma/%)
272ROOTTAVORHDRS= $(TAVORHDRS:%=$(ROOTDIR)/ib/adapters/tavor/%)
273ROOTHERMONHDRS= $(HERMONHDRS:%=$(ROOTDIR)/ib/adapters/hermon/%)
274ROOTMLNXHDRS= $(MLNXHDRS:%=$(ROOTDIR)/ib/adapters/%)
275
276ROOTIDMHDRS= $(IDMHDRS:%=$(ROOTDIR)/idm/%)
277ROOTISCSITHDRS= $(ISCSITHDRS:%=$(ROOTDIR)/iscsit/%)
278
279ROOTISOHDRS= $(ISOHDRS:%=$(ROOTDIR)/iso/%)
280
281ROOTFMHDRS= $(FMHDRS:%=$(ROOTDIR)/fm/%)
282ROOTFMCPUHDRS= $(FMCPUHDRS:%=$(ROOTDIR)/fm/cpu/%)
283ROOTFMIOHDRS= $(FMIOHDRS:%=$(ROOTDIR)/fm/io/%)
284ROOTFMFSHDRS= $(FMFSHDRS:%=$(ROOTDIR)/fm/fs/%)
285
286ROOTFSHDRS= $(FSHDRS:%=$(ROOTDIR)/fs/%)
287
288ROOTLVMHDRS= $(ALL_LVMHDRS:%=$(ROOTDIR)/lvm/%)
289
290ROOTSCSIHDRS= $(SCSIHDRS:%=$(ROOTDIR)/scsi/%)
291ROOTSATAGENHDRS= $(SATAGENHDRS:%=$(ROOTDIR)/sata/%)
292ROOTSCSICONFHDRS= $(SCSICONFHDRS:%=$(ROOTDIR)/scsi/conf/%)
293ROOTSCSIGENHDRS= $(SCSIGENHDRS:%=$(ROOTDIR)/scsi/generic/%)
294ROOTSCSIIMPLHDRS= $(SCSIIMPLHDRS:%=$(ROOTDIR)/scsi/impl/%)
295ROOTSCSITARGETSHDRS= $(SCSITARGETSHDRS:%=$(ROOTDIR)/scsi/targets/%)
296ROOTSCSICADHDRS= $(SCSICADHDRS:%=$(ROOTDIR)/scsi/adapters/%)
297ROOTSCSIADHDRS= $(SCSICADHDRS:%=$(ROOTDIR)/scsi/adapters/%)
298ROOTSCSIVHCIHDRS= $(SCSIVHCIHDRS:%=$(ROOTDIR)/scsi/adapters/%)
299ROOTSCSIISCSIHDRS= $(SCSIISCSIHDRS:%=$(ROOTDIR)/scsi/adapters/%)
300
301ROOTFC4HDRS= $(FC4HDRS:%=$(ROOTDIR)/fc4/%)
302ROOTFCHDRS= $(FCHDRS:%=$(ROOTDIR)/fibre-channel/%)
303ROOTFCIMPLHDRS= $(FCIMPLHDRS:%=$(ROOTDIR)/fibre-channel/impl/%)
304ROOTFCULPHDRS= $(FCULPHDRS:%=$(ROOTDIR)/fibre-channel/ulp/%)
305
306ROOTSDCARDHDRS= $(SDCARDHDRS:%=$(ROOTDIR)/sdcard/%)
307
308ROOTSYSEVENTHDRS= $(SYSEVENTHDRS:%=$(ROOTDIR)/sysevent/%)
309ROOTCONTRACTHDRS= $(CONTRACTHDRS:%=$(ROOTDIR)/contract/%)
310
311ROOTXHDRS= $(XHDRS:%=$(ROOTDIR)/%)
312
313ROOTUSBHDRS= $(USBHDRS:%=$(ROOTDIR)/usb/%)
314ROOTUWBHDRS= $(UWBHDRS:%=$(ROOTDIR)/uwb/%)
315ROOTUWBAHDRS= $(UWBAHDRS:%=$(ROOTDIR)/uwb/uwba/%)
316ROOTUSBAUDHDRS= $(USBAUDHDRS:%=$(ROOTDIR)/usb/clients/audio/%)
317ROOTUSBHUBDHDRS= $(USBHUBDHDRS:%=$(ROOTDIR)/usb/hubd/%)
318ROOTUSBHIDHDRS = $(USBHIDHDRS:%=$(ROOTDIR)/usb/clients/hid/%)
319ROOTUSBHWARCHDRS = $(USBHWARCHDRS:%=$(ROOTDIR)/usb/clients/hwarc/%)
320ROOTUSBMSHDRS= $(USBMSHDRS:%=$(ROOTDIR)/usb/clients/mass_storage/%)
321ROOTUSBPRNHDRS= $(USBPRNHDRS:%=$(ROOTDIR)/usb/clients/printer/%)
322ROOTUSBCDCHDRS= $(USBCDCHDRS:%=$(ROOTDIR)/usb/clients/usbcdc/%)
323ROOTUSBVIDHDRS= $(USBVIDHDRS:%=$(ROOTDIR)/usb/clients/video/usbvc/%)
324ROOTUSBWCMHDRS= $(USBWCMHDRS:%=$(ROOTDIR)/usb/clients/usbinput/usbwcm/%)
325ROOTUGENHDRS= $(UGENHDRS:%=$(ROOTDIR)/usb/clients/ugen/%)
326
327ROOT1394HDRS= $(I1394HDRS:%=$(ROOTDIR)/1394/%)
328
329ROOTRSMHDRS= $(RSMHDRS:%=$(ROOTDIR)/rsm/%)
330
331ROOTSDKTPHDRS= $(SDKTPHDRS:%=$(ROOTDIR)/dktp/%)
332ROOTDKTPHDRS= $(DKTPHDRS:%=$(ROOTDIR)/dktp/%)
333ROOTPCHDRS= $(PCHDRS:%=$(ROOTDIR)/%)
334ROOTHOTPLUGHDRS= $(HOTPLUGHDRS:%=$(ROOTDIR)/hotplug/%)
335ROOTHOTPLUGPCIHDRS= $(HOTPLUGPCIHDRS:%=$(ROOTDIR)/hotplug/pci/%)
336
337ROOTTSOLHDRS= $(TSOLHDRS:%=$(ROOTDIR)/tsol/%)
338
339sparc_ROOTHDRS=	$(ROOTSDKTPHDRS) $(ROOTSCSICADHDRS) $(ROOTSCSITARGETSHDRS) \
340		$(ROOTUSBHDRS) $(ROOTUSBHUBDHDRS) \
341		$(ROOTUSBAUDHDRS) $(ROOTUSBHIDHDRS) $(ROOTUSBMSHDRS) \
342		$(ROOTUSBPRNHDRS) $(ROOTUGENHDRS) $(ROOTUSBVIDHDRS) \
343		$(ROOTUWBHDRS) $(ROOTUWBAHDRS) $(ROOTUSBHWARCHDRS)
344
345i386_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
486