xref: /illumos-gate/usr/src/uts/common/sys/Makefile.syshdrs (revision a92282e44f968185a6bba094d1e5fece2da819cf)
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
176ROOTDKTPDIR=	$(ROOTDIR)/dktp
177
178sparc_ROOTDIRS=	$(ROOTDKTPDIR) $(ROOTDIR)/scsi/adapters \
179		$(ROOTDIR)/scsi/targets
180
181i386_ROOTDIRS=	$(ROOTDKTPDIR) $(ROOTDIR)/scsi/adapters \
182		$(ROOTDIR)/scsi/targets \
183		$(ROOTDIR)/sata
184
185ROOTDIRS=			\
186	$(ROOTDIR)		\
187	$(ROOTDIR)/audio	\
188	$(ROOTDIR)/av		\
189	$(ROOTDIR)/hotplug	\
190	$(ROOTDIR)/hotplug/pci	\
191	$(ROOTDIR)/crypto	\
192	$(ROOTDIR)/dcam		\
193	$(ROOTDIR)/iso		\
194	$(ROOTDIR)/fc4		\
195	$(ROOTDIR)/fibre-channel    \
196	$(ROOTDIR)/fibre-channel/impl	\
197	$(ROOTDIR)/fibre-channel/ulp	\
198	$(ROOTDIR)/fm		\
199	$(ROOTDIR)/fm/cpu	\
200	$(ROOTDIR)/fm/fs	\
201	$(ROOTDIR)/fm/io	\
202	$(ROOTDIR)/fs		\
203	$(ROOTDIR)/ib		\
204	$(ROOTDIR)/ib/adapters/tavor	\
205	$(ROOTDIR)/ib/adapters/hermon	\
206	$(ROOTDIR)/ib/adapters	\
207	$(ROOTDIR)/ib/ibtl	\
208	$(ROOTDIR)/ib/ibtl/impl	\
209	$(ROOTDIR)/ib/mgt	\
210	$(ROOTDIR)/ib/mgt/ibmf	\
211	$(ROOTDIR)/ib/ibnex	\
212	$(ROOTDIR)/ib/clients/ibd \
213	$(ROOTDIR)/ib/clients/of	\
214	$(ROOTDIR)/ib/clients/of/rdma	\
215	$(ROOTDIR)/ib/clients/of/sol_ofs	\
216	$(ROOTDIR)/ib/clients/of/sol_uverbs	\
217	$(ROOTDIR)/ib/clients/of/sol_umad	\
218	$(ROOTDIR)/ib/clients/of/sol_ucma	\
219	$(ROOTDIR)/idm		\
220	$(ROOTDIR)/iscsit	\
221	$(ROOTDIR)/scsi		\
222	$(ROOTDIR)/scsi/conf	\
223	$(ROOTDIR)/scsi/generic	\
224	$(ROOTDIR)/scsi/impl	\
225	$(ROOTDIR)/sdcard	\
226	$(ROOTDIR)/sysevent     \
227	$(ROOTDIR)/contract     \
228	$(ROOTDIR)/usb		\
229	$(ROOTDIR)/usb/hubd	\
230	$(ROOTDIR)/usb/clients	\
231	$(ROOTDIR)/usb/clients/audio  \
232	$(ROOTDIR)/usb/clients/hid \
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/ccid \
239	$(ROOTDIR)/usb/clients/ugen  \
240	$(ROOTDIR)/1394         \
241	$(ROOTDIR)/rsm		\
242	$(ROOTDIR)/tsol		\
243	$($(MACH)_ROOTDIRS)
244
245
246ROOTHDRS=				\
247	$($(MACH)_HDRS:%=$(ROOTDIR)/%)	\
248	$(HDRS:%=$(ROOTDIR)/%)
249
250ROOTAUDHDRS= $(AUDIOHDRS:%=$(ROOTDIR)/audio/%)
251
252ROOTAVHDRS= $(AVHDRS:%=$(ROOTDIR)/av/%)
253
254ROOTCRYPTOHDRS= $(CRYPTOHDRS:%=$(ROOTDIR)/crypto/%)
255
256ROOTDCAMHDRS= $(DCAMHDRS:%=$(ROOTDIR)/dcam/%)
257
258ROOTIBHDRS= $(IBHDRS:%=$(ROOTDIR)/ib/%)
259ROOTIBDHDRS= $(IBDHDRS:%=$(ROOTDIR)/ib/clients/ibd/%)
260ROOTIBTLHDRS= $(IBTLHDRS:%=$(ROOTDIR)/ib/ibtl/%)
261ROOTIBTLIMPLHDRS= $(IBTLIMPLHDRS:%=$(ROOTDIR)/ib/ibtl/impl/%)
262ROOTIBNEXHDRS= $(IBNEXHDRS:%=$(ROOTDIR)/ib/ibnex/%)
263ROOTIBMGTHDRS= $(IBMGTHDRS:%=$(ROOTDIR)/ib/mgt/%)
264ROOTIBMFHDRS= $(IBMFHDRS:%=$(ROOTDIR)/ib/mgt/ibmf/%)
265ROOTOFHDRS= $(OFHDRS:%=$(ROOTDIR)/ib/clients/of/%)
266ROOTRDMAHDRS= $(RDMAHDRS:%=$(ROOTDIR)/ib/clients/of/rdma/%)
267ROOTSOL_OFSHDRS= $(SOL_OFSHDRS:%=$(ROOTDIR)/ib/clients/of/sol_ofs/%)
268ROOTSOL_UVERBSHDRS= $(SOL_UVERBSHDRS:%=$(ROOTDIR)/ib/clients/of/sol_uverbs/%)
269ROOTSOL_UMADHDRS= $(SOL_UMADHDRS:%=$(ROOTDIR)/ib/clients/of/sol_umad/%)
270ROOTSOL_UCMAHDRS= $(SOL_UCMAHDRS:%=$(ROOTDIR)/ib/clients/of/sol_ucma/%)
271ROOTTAVORHDRS= $(TAVORHDRS:%=$(ROOTDIR)/ib/adapters/tavor/%)
272ROOTHERMONHDRS= $(HERMONHDRS:%=$(ROOTDIR)/ib/adapters/hermon/%)
273ROOTMLNXHDRS= $(MLNXHDRS:%=$(ROOTDIR)/ib/adapters/%)
274
275ROOTIDMHDRS= $(IDMHDRS:%=$(ROOTDIR)/idm/%)
276ROOTISCSITHDRS= $(ISCSITHDRS:%=$(ROOTDIR)/iscsit/%)
277
278ROOTISOHDRS= $(ISOHDRS:%=$(ROOTDIR)/iso/%)
279
280ROOTFMHDRS= $(FMHDRS:%=$(ROOTDIR)/fm/%)
281ROOTFMCPUHDRS= $(FMCPUHDRS:%=$(ROOTDIR)/fm/cpu/%)
282ROOTFMIOHDRS= $(FMIOHDRS:%=$(ROOTDIR)/fm/io/%)
283ROOTFMFSHDRS= $(FMFSHDRS:%=$(ROOTDIR)/fm/fs/%)
284
285ROOTFSHDRS= $(FSHDRS:%=$(ROOTDIR)/fs/%)
286
287ROOTSCSIHDRS= $(SCSIHDRS:%=$(ROOTDIR)/scsi/%)
288ROOTSATAGENHDRS= $(SATAGENHDRS:%=$(ROOTDIR)/sata/%)
289ROOTSCSICONFHDRS= $(SCSICONFHDRS:%=$(ROOTDIR)/scsi/conf/%)
290ROOTSCSIGENHDRS= $(SCSIGENHDRS:%=$(ROOTDIR)/scsi/generic/%)
291ROOTSCSIIMPLHDRS= $(SCSIIMPLHDRS:%=$(ROOTDIR)/scsi/impl/%)
292ROOTSCSITARGETSHDRS= $(SCSITARGETSHDRS:%=$(ROOTDIR)/scsi/targets/%)
293ROOTSCSICADHDRS= $(SCSICADHDRS:%=$(ROOTDIR)/scsi/adapters/%)
294ROOTSCSIADHDRS= $(SCSICADHDRS:%=$(ROOTDIR)/scsi/adapters/%)
295ROOTSCSIVHCIHDRS= $(SCSIVHCIHDRS:%=$(ROOTDIR)/scsi/adapters/%)
296ROOTSCSIISCSIHDRS= $(SCSIISCSIHDRS:%=$(ROOTDIR)/scsi/adapters/%)
297
298ROOTFC4HDRS= $(FC4HDRS:%=$(ROOTDIR)/fc4/%)
299ROOTFCHDRS= $(FCHDRS:%=$(ROOTDIR)/fibre-channel/%)
300ROOTFCIMPLHDRS= $(FCIMPLHDRS:%=$(ROOTDIR)/fibre-channel/impl/%)
301ROOTFCULPHDRS= $(FCULPHDRS:%=$(ROOTDIR)/fibre-channel/ulp/%)
302
303ROOTSDCARDHDRS= $(SDCARDHDRS:%=$(ROOTDIR)/sdcard/%)
304
305ROOTSYSEVENTHDRS= $(SYSEVENTHDRS:%=$(ROOTDIR)/sysevent/%)
306ROOTCONTRACTHDRS= $(CONTRACTHDRS:%=$(ROOTDIR)/contract/%)
307
308ROOTXHDRS= $(XHDRS:%=$(ROOTDIR)/%)
309
310ROOTUSBHDRS= $(USBHDRS:%=$(ROOTDIR)/usb/%)
311ROOTUSBAUDHDRS= $(USBAUDHDRS:%=$(ROOTDIR)/usb/clients/audio/%)
312ROOTUSBHUBDHDRS= $(USBHUBDHDRS:%=$(ROOTDIR)/usb/hubd/%)
313ROOTUSBHIDHDRS = $(USBHIDHDRS:%=$(ROOTDIR)/usb/clients/hid/%)
314ROOTUSBMSHDRS= $(USBMSHDRS:%=$(ROOTDIR)/usb/clients/mass_storage/%)
315ROOTUSBPRNHDRS= $(USBPRNHDRS:%=$(ROOTDIR)/usb/clients/printer/%)
316ROOTUSBCDCHDRS= $(USBCDCHDRS:%=$(ROOTDIR)/usb/clients/usbcdc/%)
317ROOTUSBVIDHDRS= $(USBVIDHDRS:%=$(ROOTDIR)/usb/clients/video/usbvc/%)
318ROOTUSBWCMHDRS= $(USBWCMHDRS:%=$(ROOTDIR)/usb/clients/usbinput/usbwcm/%)
319ROOTUSBCCIDHDRS= $(USBCCIDHDRS:%=$(ROOTDIR)/usb/clients/ccid/%)
320ROOTUGENHDRS= $(UGENHDRS:%=$(ROOTDIR)/usb/clients/ugen/%)
321
322ROOT1394HDRS= $(I1394HDRS:%=$(ROOTDIR)/1394/%)
323
324ROOTRSMHDRS= $(RSMHDRS:%=$(ROOTDIR)/rsm/%)
325
326ROOTSDKTPHDRS= $(SDKTPHDRS:%=$(ROOTDIR)/dktp/%)
327ROOTDKTPHDRS= $(DKTPHDRS:%=$(ROOTDIR)/dktp/%)
328ROOTPCHDRS= $(PCHDRS:%=$(ROOTDIR)/%)
329ROOTHOTPLUGHDRS= $(HOTPLUGHDRS:%=$(ROOTDIR)/hotplug/%)
330ROOTHOTPLUGPCIHDRS= $(HOTPLUGPCIHDRS:%=$(ROOTDIR)/hotplug/pci/%)
331
332ROOTTSOLHDRS= $(TSOLHDRS:%=$(ROOTDIR)/tsol/%)
333
334sparc_ROOTHDRS=	$(ROOTSDKTPHDRS) $(ROOTSCSICADHDRS) $(ROOTSCSITARGETSHDRS) \
335		$(ROOTUSBHDRS) $(ROOTUSBHUBDHDRS) \
336		$(ROOTUSBAUDHDRS) $(ROOTUSBHIDHDRS) $(ROOTUSBMSHDRS) \
337		$(ROOTUSBPRNHDRS) $(ROOTUGENHDRS) $(ROOTUSBVIDHDRS)
338
339i386_ROOTHDRS=	$(ROOTDKTPHDRS) $(ROOTPCHDRS) $(ROOTSCSITARGETSHDRS)	\
340		$(ROOTSCSIVHCIHDRS) $(ROOTHOTPLUGHDRS) \
341		$(ROOTHOTPLUGPCIHDRS) $(ROOTSATAGENHDRS)
342
343# install rules
344$(ROOTDIR)/%: %
345	$(INS.file)
346
347$(ROOTDIR)/crypto/%: crypto/%
348	$(INS.file)
349
350$(ROOTDIR)/fc4/%:		fc4/%
351	$(INS.file)
352
353$(ROOTDIR)/fibre-channel/%:	fibre-channel/%
354	$(INS.file)
355
356$(ROOTDIR)/fibre-channel/impl/%:	fibre-channel/impl/%
357	$(INS.file)
358
359$(ROOTDIR)/fibre-channel/ulp/:	fibre-channel/ulp/%
360	$(INS.file)
361
362$(ROOTDIR)/fm/%:                fm/%
363	$(INS.file)
364
365$(ROOTDIR)/fm/cpu/%:                fm/cpu/%
366	$(INS.file)
367
368$(ROOTDIR)/fm/io/%:                fm/io/%
369	$(INS.file)
370
371$(ROOTDIR)/fs/%: fs/%
372	$(INS.file)
373
374$(ROOTDIR)/ib/%:		ib/%
375	$(INS.file)
376
377$(ROOTDIR)/ib/clients/ibd/%:	ib/clients/ibd/%
378	$(INS.file)
379
380$(ROOTDIR)/ib/clients/of/%:		of/%
381	$(INS.file)
382
383$(ROOTDIR)/ib/clients/of/rdma/%:	ib/clients/of/rdma/%
384	$(INS.file)
385
386$(ROOTDIR)/ib/clients/of/sol_ofs/%:	ib/clients/of/sol_ofs/%
387	$(INS.file)
388
389$(ROOTDIR)/ib/clients/of/sol_uverbs/%:	ib/clients/of/sol_uverbs/%
390	$(INS.file)
391
392$(ROOTDIR)/ib/clients/of/sol_umad/%:	ib/clients/of/sol_umad/%
393	$(INS.file)
394
395$(ROOTDIR)/ib/clients/of/sol_ucma/%:	ib/clients/of/sol_ucma/%
396	$(INS.file)
397
398$(ROOTDIR)/ib/ibtl/%:		ib/ibtl/%
399	$(INS.file)
400
401$(ROOTDIR)/ib/ibtl/impl/%:	ib/ibtl/impl/%
402	$(INS.file)
403
404$(ROOTDIR)/ib/ibnex/%:		ib/ibnex/%
405	$(INS.file)
406
407$(ROOTDIR)/ib/mgt/%:		ib/mgt/%
408	$(INS.file)
409
410$(ROOTDIR)/ib/mgt/ibmf/%:	ib/mgt/ibmf/%
411	$(INS.file)
412
413$(ROOTDIR)/ib/adapters/tavor/%:	ib/adapters/tavor/%
414	$(INS.file)
415
416$(ROOTDIR)/ib/adapters/hermon/%:	ib/adapters/hermon/%
417	$(INS.file)
418
419$(ROOTDIR)/ib/adapters/%:	ib/adapters/%
420	$(INS.file)
421
422$(ROOTDIR)/scsi/%:		scsi/%
423	$(INS.file)
424
425$(ROOTDIR)/scsi/conf/%:		scsi/conf/%
426	$(INS.file)
427
428$(ROOTDIR)/scsi/generic/%:	scsi/generic/%
429	$(INS.file)
430
431$(ROOTDIR)/scsi/impl/%:		scsi/impl/%
432	$(INS.file)
433
434$(ROOTDIR)/scsi/targets/%:	scsi/targets/%
435	$(INS.file)
436
437$(ROOTDIR)/scsi/adapters/%:	scsi/adapters/%
438	$(INS.file)
439
440$(ROOTDIR)/sdcard/%:		sdcard/%
441	$(INS.file)
442
443$(ROOTDIR)/sysevent/%:		sysevent/%
444	$(INS.file)
445
446$(ROOTDIR)/contract/%:		contract/%
447	$(INS.file)
448
449$(ROOTDIR)/usb/%:		usb/%
450	$(INS.file)
451
452$(ROOTDIR)/usb/hubd/%:		usb/hubd/%
453	$(INS.file)
454
455$(ROOTDIR)/usb/clients/hid/%:	usb/clients/hid/%
456	$(INS.file)
457
458$(ROOTDIR)/usb/clients/mass_storage/%:	usb/clients/mass_storage/%
459	$(INS.file)
460
461$(ROOTDIR)/dktp/%: dktp/%
462	$(INS.file)
463
464$(ROOTDIR)/1394/%:                    1394/%
465	$(INS.file)
466
467$(ROOTDIR)/rsm/%:	rsm/%
468	$(INS.file)
469
470$(ROOTDIR)/tsol/%:	tsol/%
471	$(INS.file)
472
473$(ROOTDIRS):
474	$(INS.dir)
475
476