xref: /titanic_51/usr/src/uts/common/sys/Makefile.syshdrs (revision c9df77d984161315e2f741c6ac78c396a2743fe6)
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
32audio/%.check:	audio/%.h
33	$(DOT_H_CHECK)
34
35av/%.check:	av/%.h
36	$(DOT_H_CHECK)
37
38fm/%.check:     fm/%.h
39	$(DOT_H_CHECK)
40
41fm/cpu/%.check:	fm/cpu/%.h
42	$(DOT_H_CHECK)
43
44fm/fs/%.check:	fm/fs/%.h
45	$(DOT_H_CHECK)
46
47fm/io/%.check:	fm/io/%.h
48	$(DOT_H_CHECK)
49
50fs/%.check:	fs/%.h
51	$(DOT_H_CHECK)
52
53ib/%.check:		ib/%.h
54	$(DOT_H_CHECK)
55
56ib/clients/ibd/%.check:	ib/clients/ibd/%.h
57	$(DOT_H_CHECK)
58
59ib/clients/of/%.check:		ib/clients/of/%.h
60	$(DOT_H_CHECK)
61
62ib/clients/of/rdma/%.check:		ib/clients/of/rdma/%.h
63	$(DOT_H_CHECK)
64
65ib/clients/of/sol_ofs/%.check:		ib/clients/of/sol_ofs/%.h
66	$(DOT_H_CHECK)
67
68ib/clients/of/sol_uverbs/%.check:	ib/clients/of/sol_uverbs/%.h
69	$(DOT_H_CHECK)
70
71ib/clients/of/sol_umad/%.check:		ib/clients/of/sol_umad/%.h
72	$(DOT_H_CHECK)
73
74ib/clients/of/sol_ucma/%.check:		ib/clients/of/sol_ucma/%.h
75	$(DOT_H_CHECK)
76
77ib/ibtl/%.check:	ib/ibtl/%.h
78	$(DOT_H_CHECK)
79
80ib/ibtl/impl/%.check:	ib/ibtl/impl/%.h
81	$(DOT_H_CHECK)
82
83ib/ibnex/%.check:	ib/ibnex/%.h
84	$(DOT_H_CHECK)
85
86ib/mgt/%.check:	ib/mgt/%.h
87	$(DOT_H_CHECK)
88
89ib/mgt/ibmf/%.check:	ib/mgt/ibmf/%.h
90	$(DOT_H_CHECK)
91
92ib/adapters/tavor/%.check:	ib/adapters/tavor/%.h
93	$(DOT_H_CHECK)
94
95ib/adapters/hermon/%.check:	ib/adapters/hermon/%.h
96	$(DOT_H_CHECK)
97
98ib/adapters/%.check:	ib/adapters/%.h
99	$(DOT_H_CHECK)
100
101idm/%.check:		idm/%.h
102	$(DOT_H_CHECK)
103
104iscsit/%.check:		iscsit/%.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/mass_storage/%.check:	usb/clients/mass_storage/%.h
147	$(DOT_H_CHECK)
148
149usb/clients/printer/%.check:  usb/clients/printer/%.h
150	$(DOT_H_CHECK)
151
152usb/clients/usbcdc/%.check:	usb/clients/usbcdc/%.h
153	$(DOT_H_CHECK)
154
155usb/clients/video/usbvc/%.check:  usb/clients/video/usbvc/%.h
156	$(DOT_H_CHECK)
157
158usb/clients/usbinput/usbwcm/%.check:	usb/clients/usbinput/usbwcm/%.h
159	$(DOT_H_CHECK)
160
1611394/%.check:         1394/%.h
162	$(DOT_H_CHECK)
163
164rsm/%.check:	rsm/%.h
165	$(DOT_H_CHECK)
166
167tsol/%.check:	tsol/%.h
168	$(DOT_H_CHECK)
169
170ROOTDIR=	$(ROOT)/usr/include/sys
171
172ROOTDKTPDIR=	$(ROOTDIR)/dktp
173
174sparc_ROOTDIRS=	$(ROOTDKTPDIR) $(ROOTDIR)/scsi/adapters \
175		$(ROOTDIR)/scsi/targets
176
177i386_ROOTDIRS=	$(ROOTDKTPDIR) $(ROOTDIR)/scsi/adapters \
178		$(ROOTDIR)/scsi/targets \
179		$(ROOTDIR)/sata
180
181ROOTDIRS=			\
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
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/%)
288ROOTSCSICADHDRS= $(SCSICADHDRS:%=$(ROOTDIR)/scsi/adapters/%)
289ROOTSCSIADHDRS= $(SCSICADHDRS:%=$(ROOTDIR)/scsi/adapters/%)
290ROOTSCSIVHCIHDRS= $(SCSIVHCIHDRS:%=$(ROOTDIR)/scsi/adapters/%)
291ROOTSCSIISCSIHDRS= $(SCSIISCSIHDRS:%=$(ROOTDIR)/scsi/adapters/%)
292
293ROOTFC4HDRS= $(FC4HDRS:%=$(ROOTDIR)/fc4/%)
294ROOTFCHDRS= $(FCHDRS:%=$(ROOTDIR)/fibre-channel/%)
295ROOTFCIMPLHDRS= $(FCIMPLHDRS:%=$(ROOTDIR)/fibre-channel/impl/%)
296ROOTFCULPHDRS= $(FCULPHDRS:%=$(ROOTDIR)/fibre-channel/ulp/%)
297
298ROOTSDCARDHDRS= $(SDCARDHDRS:%=$(ROOTDIR)/sdcard/%)
299
300ROOTSYSEVENTHDRS= $(SYSEVENTHDRS:%=$(ROOTDIR)/sysevent/%)
301ROOTCONTRACTHDRS= $(CONTRACTHDRS:%=$(ROOTDIR)/contract/%)
302
303ROOTXHDRS= $(XHDRS:%=$(ROOTDIR)/%)
304
305ROOTUSBHDRS= $(USBHDRS:%=$(ROOTDIR)/usb/%)
306ROOTUSBAUDHDRS= $(USBAUDHDRS:%=$(ROOTDIR)/usb/clients/audio/%)
307ROOTUSBHUBDHDRS= $(USBHUBDHDRS:%=$(ROOTDIR)/usb/hubd/%)
308ROOTUSBHIDHDRS = $(USBHIDHDRS:%=$(ROOTDIR)/usb/clients/hid/%)
309ROOTUSBMSHDRS= $(USBMSHDRS:%=$(ROOTDIR)/usb/clients/mass_storage/%)
310ROOTUSBPRNHDRS= $(USBPRNHDRS:%=$(ROOTDIR)/usb/clients/printer/%)
311ROOTUSBCDCHDRS= $(USBCDCHDRS:%=$(ROOTDIR)/usb/clients/usbcdc/%)
312ROOTUSBVIDHDRS= $(USBVIDHDRS:%=$(ROOTDIR)/usb/clients/video/usbvc/%)
313ROOTUSBWCMHDRS= $(USBWCMHDRS:%=$(ROOTDIR)/usb/clients/usbinput/usbwcm/%)
314ROOTUGENHDRS= $(UGENHDRS:%=$(ROOTDIR)/usb/clients/ugen/%)
315
316ROOT1394HDRS= $(I1394HDRS:%=$(ROOTDIR)/1394/%)
317
318ROOTRSMHDRS= $(RSMHDRS:%=$(ROOTDIR)/rsm/%)
319
320ROOTSDKTPHDRS= $(SDKTPHDRS:%=$(ROOTDIR)/dktp/%)
321ROOTDKTPHDRS= $(DKTPHDRS:%=$(ROOTDIR)/dktp/%)
322ROOTPCHDRS= $(PCHDRS:%=$(ROOTDIR)/%)
323ROOTHOTPLUGHDRS= $(HOTPLUGHDRS:%=$(ROOTDIR)/hotplug/%)
324ROOTHOTPLUGPCIHDRS= $(HOTPLUGPCIHDRS:%=$(ROOTDIR)/hotplug/pci/%)
325
326ROOTTSOLHDRS= $(TSOLHDRS:%=$(ROOTDIR)/tsol/%)
327
328sparc_ROOTHDRS=	$(ROOTSDKTPHDRS) $(ROOTSCSICADHDRS) $(ROOTSCSITARGETSHDRS) \
329		$(ROOTUSBHDRS) $(ROOTUSBHUBDHDRS) \
330		$(ROOTUSBAUDHDRS) $(ROOTUSBHIDHDRS) $(ROOTUSBMSHDRS) \
331		$(ROOTUSBPRNHDRS) $(ROOTUGENHDRS) $(ROOTUSBVIDHDRS)
332
333i386_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
470