xref: /illumos-gate/usr/src/uts/common/sys/Makefile.syshdrs (revision fd71220ba0fafcc9cf5ea0785db206f3f31336e7)
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
54gpio/%.check:	gpio/%.h
55	$(DOT_H_CHECK)
56
57ib/%.check:		ib/%.h
58	$(DOT_H_CHECK)
59
60ib/clients/ibd/%.check:	ib/clients/ibd/%.h
61	$(DOT_H_CHECK)
62
63ib/clients/of/%.check:		ib/clients/of/%.h
64	$(DOT_H_CHECK)
65
66ib/clients/of/rdma/%.check:		ib/clients/of/rdma/%.h
67	$(DOT_H_CHECK)
68
69ib/clients/of/sol_ofs/%.check:		ib/clients/of/sol_ofs/%.h
70	$(DOT_H_CHECK)
71
72ib/clients/of/sol_uverbs/%.check:	ib/clients/of/sol_uverbs/%.h
73	$(DOT_H_CHECK)
74
75ib/clients/of/sol_umad/%.check:		ib/clients/of/sol_umad/%.h
76	$(DOT_H_CHECK)
77
78ib/clients/of/sol_ucma/%.check:		ib/clients/of/sol_ucma/%.h
79	$(DOT_H_CHECK)
80
81ib/ibtl/%.check:	ib/ibtl/%.h
82	$(DOT_H_CHECK)
83
84ib/ibtl/impl/%.check:	ib/ibtl/impl/%.h
85	$(DOT_H_CHECK)
86
87ib/ibnex/%.check:	ib/ibnex/%.h
88	$(DOT_H_CHECK)
89
90ib/mgt/%.check:	ib/mgt/%.h
91	$(DOT_H_CHECK)
92
93ib/mgt/ibmf/%.check:	ib/mgt/ibmf/%.h
94	$(DOT_H_CHECK)
95
96ib/adapters/tavor/%.check:	ib/adapters/tavor/%.h
97	$(DOT_H_CHECK)
98
99ib/adapters/hermon/%.check:	ib/adapters/hermon/%.h
100	$(DOT_H_CHECK)
101
102ib/adapters/%.check:	ib/adapters/%.h
103	$(DOT_H_CHECK)
104
105idm/%.check:		idm/%.h
106	$(DOT_H_CHECK)
107
108iscsit/%.check:		iscsit/%.h
109	$(DOT_H_CHECK)
110
111nvme/%.check:		nvme/%.h
112	$(DOT_H_CHECK)
113
114scsi/%.check:		scsi/%.h
115	$(DOT_H_CHECK)
116
117scsi/conf/%.check:	scsi/conf/%.h
118	$(DOT_H_CHECK)
119
120scsi/generic/%.check:	scsi/generic/%.h
121	$(DOT_H_CHECK)
122
123scsi/impl/%.check:	scsi/impl/%.h
124	$(DOT_H_CHECK)
125
126scsi/targets/%.check:	scsi/targets/%.h
127	$(DOT_H_CHECK)
128
129scsi/adapters/%.check:	scsi/adapters/%.h
130	$(DOT_H_CHECK)
131
132sdcard/%.check:		sdcard/%.h
133	$(DOT_H_CHECK)
134
135sysevent/%.check:     sysevent/%.h
136	$(DOT_H_CHECK)
137
138contract/%.check:     contract/%.h
139	$(DOT_H_CHECK)
140
141usb/%.check:		usb/%.h
142	$(DOT_H_CHECK)
143
144usb/clients/audio/%.check:  usb/clients/audio/%.h
145	$(DOT_H_CHECK)
146
147usb/hubd/%.check:	usb/hubd/%.h
148	$(DOT_H_CHECK)
149
150usb/clients/hid/%.check:	usb/clients/hid/%.h
151	$(DOT_H_CHECK)
152
153usb/clients/mass_storage/%.check:	usb/clients/mass_storage/%.h
154	$(DOT_H_CHECK)
155
156usb/clients/printer/%.check:  usb/clients/printer/%.h
157	$(DOT_H_CHECK)
158
159usb/clients/ccid/%.check:	usb/clients/ccid/%.h
160	$(DOT_H_CHECK)
161
162usb/clients/usbcdc/%.check:	usb/clients/usbcdc/%.h
163	$(DOT_H_CHECK)
164
165usb/clients/video/usbvc/%.check:  usb/clients/video/usbvc/%.h
166	$(DOT_H_CHECK)
167
168usb/clients/usbinput/usbwcm/%.check:	usb/clients/usbinput/usbwcm/%.h
169	$(DOT_H_CHECK)
170
1711394/%.check:         1394/%.h
172	$(DOT_H_CHECK)
173
174rsm/%.check:	rsm/%.h
175	$(DOT_H_CHECK)
176
177tsol/%.check:	tsol/%.h
178	$(DOT_H_CHECK)
179
180ROOTDIR=	$(ROOT)/usr/include/sys
181
182ROOTDIRS=			\
183	$(ROOTDIR)		\
184	$(ROOTDIR)/audio	\
185	$(ROOTDIR)/av		\
186	$(ROOTDIR)/dktp		\
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)/gpio		\
202	$(ROOTDIR)/ib		\
203	$(ROOTDIR)/ib/adapters/tavor	\
204	$(ROOTDIR)/ib/adapters/hermon	\
205	$(ROOTDIR)/ib/adapters	\
206	$(ROOTDIR)/ib/ibtl	\
207	$(ROOTDIR)/ib/ibtl/impl	\
208	$(ROOTDIR)/ib/mgt	\
209	$(ROOTDIR)/ib/mgt/ibmf	\
210	$(ROOTDIR)/ib/ibnex	\
211	$(ROOTDIR)/ib/clients/ibd \
212	$(ROOTDIR)/ib/clients/of	\
213	$(ROOTDIR)/ib/clients/of/rdma	\
214	$(ROOTDIR)/ib/clients/of/sol_ofs	\
215	$(ROOTDIR)/ib/clients/of/sol_uverbs	\
216	$(ROOTDIR)/ib/clients/of/sol_umad	\
217	$(ROOTDIR)/ib/clients/of/sol_ucma	\
218	$(ROOTDIR)/idm		\
219	$(ROOTDIR)/iscsit	\
220	$(ROOTDIR)/nvme		\
221	$(ROOTDIR)/sata		\
222	$(ROOTDIR)/scsi		\
223	$(ROOTDIR)/scsi/adapters	\
224	$(ROOTDIR)/scsi/conf	\
225	$(ROOTDIR)/scsi/generic	\
226	$(ROOTDIR)/scsi/impl	\
227	$(ROOTDIR)/scsi/targets	\
228	$(ROOTDIR)/sdcard	\
229	$(ROOTDIR)/sysevent     \
230	$(ROOTDIR)/contract     \
231	$(ROOTDIR)/usb		\
232	$(ROOTDIR)/usb/hubd	\
233	$(ROOTDIR)/usb/clients	\
234	$(ROOTDIR)/usb/clients/audio  \
235	$(ROOTDIR)/usb/clients/hid \
236	$(ROOTDIR)/usb/clients/mass_storage	\
237	$(ROOTDIR)/usb/clients/printer  \
238	$(ROOTDIR)/usb/clients/usbcdc  \
239	$(ROOTDIR)/usb/clients/video/usbvc  \
240	$(ROOTDIR)/usb/clients/usbinput/usbwcm \
241	$(ROOTDIR)/usb/clients/ccid \
242	$(ROOTDIR)/usb/clients/ugen  \
243	$(ROOTDIR)/1394         \
244	$(ROOTDIR)/rsm		\
245	$(ROOTDIR)/tsol		\
246	$($(MACH)_ROOTDIRS)
247
248
249ROOTHDRS=				\
250	$($(MACH)_HDRS:%=$(ROOTDIR)/%)	\
251	$(HDRS:%=$(ROOTDIR)/%)
252
253ROOTAUDHDRS= $(AUDIOHDRS:%=$(ROOTDIR)/audio/%)
254
255ROOTAVHDRS= $(AVHDRS:%=$(ROOTDIR)/av/%)
256
257ROOTCRYPTOHDRS= $(CRYPTOHDRS:%=$(ROOTDIR)/crypto/%)
258
259ROOTDCAMHDRS= $(DCAMHDRS:%=$(ROOTDIR)/dcam/%)
260
261ROOTIBHDRS= $(IBHDRS:%=$(ROOTDIR)/ib/%)
262ROOTIBDHDRS= $(IBDHDRS:%=$(ROOTDIR)/ib/clients/ibd/%)
263ROOTIBTLHDRS= $(IBTLHDRS:%=$(ROOTDIR)/ib/ibtl/%)
264ROOTIBTLIMPLHDRS= $(IBTLIMPLHDRS:%=$(ROOTDIR)/ib/ibtl/impl/%)
265ROOTIBNEXHDRS= $(IBNEXHDRS:%=$(ROOTDIR)/ib/ibnex/%)
266ROOTIBMGTHDRS= $(IBMGTHDRS:%=$(ROOTDIR)/ib/mgt/%)
267ROOTIBMFHDRS= $(IBMFHDRS:%=$(ROOTDIR)/ib/mgt/ibmf/%)
268ROOTOFHDRS= $(OFHDRS:%=$(ROOTDIR)/ib/clients/of/%)
269ROOTRDMAHDRS= $(RDMAHDRS:%=$(ROOTDIR)/ib/clients/of/rdma/%)
270ROOTSOL_OFSHDRS= $(SOL_OFSHDRS:%=$(ROOTDIR)/ib/clients/of/sol_ofs/%)
271ROOTSOL_UVERBSHDRS= $(SOL_UVERBSHDRS:%=$(ROOTDIR)/ib/clients/of/sol_uverbs/%)
272ROOTSOL_UMADHDRS= $(SOL_UMADHDRS:%=$(ROOTDIR)/ib/clients/of/sol_umad/%)
273ROOTSOL_UCMAHDRS= $(SOL_UCMAHDRS:%=$(ROOTDIR)/ib/clients/of/sol_ucma/%)
274ROOTTAVORHDRS= $(TAVORHDRS:%=$(ROOTDIR)/ib/adapters/tavor/%)
275ROOTHERMONHDRS= $(HERMONHDRS:%=$(ROOTDIR)/ib/adapters/hermon/%)
276ROOTMLNXHDRS= $(MLNXHDRS:%=$(ROOTDIR)/ib/adapters/%)
277
278ROOTIDMHDRS= $(IDMHDRS:%=$(ROOTDIR)/idm/%)
279ROOTISCSITHDRS= $(ISCSITHDRS:%=$(ROOTDIR)/iscsit/%)
280
281ROOTISOHDRS= $(ISOHDRS:%=$(ROOTDIR)/iso/%)
282
283ROOTFMHDRS= $(FMHDRS:%=$(ROOTDIR)/fm/%)
284ROOTFMCPUHDRS= $(FMCPUHDRS:%=$(ROOTDIR)/fm/cpu/%)
285ROOTFMIOHDRS= $(FMIOHDRS:%=$(ROOTDIR)/fm/io/%)
286ROOTFMFSHDRS= $(FMFSHDRS:%=$(ROOTDIR)/fm/fs/%)
287
288ROOTFSHDRS= $(FSHDRS:%=$(ROOTDIR)/fs/%)
289ROOTGPIOHDRS= $(GPIOHDRS:%=$(ROOTDIR)/gpio/%)
290
291ROOTNVMEHDRS= $(NVMEHDRS:%=$(ROOTDIR)/nvme/%)
292
293ROOTSCSIHDRS= $(SCSIHDRS:%=$(ROOTDIR)/scsi/%)
294ROOTSATAGENHDRS= $(SATAGENHDRS:%=$(ROOTDIR)/sata/%)
295ROOTSCSICONFHDRS= $(SCSICONFHDRS:%=$(ROOTDIR)/scsi/conf/%)
296ROOTSCSIGENHDRS= $(SCSIGENHDRS:%=$(ROOTDIR)/scsi/generic/%)
297ROOTSCSIIMPLHDRS= $(SCSIIMPLHDRS:%=$(ROOTDIR)/scsi/impl/%)
298ROOTSCSITARGETSHDRS= $(SCSITARGETSHDRS:%=$(ROOTDIR)/scsi/targets/%)
299ROOTSCSIADHDRS= $(SCSICADHDRS:%=$(ROOTDIR)/scsi/adapters/%)
300ROOTSCSIVHCIHDRS= $(SCSIVHCIHDRS:%=$(ROOTDIR)/scsi/adapters/%)
301ROOTSCSIISCSIHDRS= $(SCSIISCSIHDRS:%=$(ROOTDIR)/scsi/adapters/%)
302
303ROOTFC4HDRS= $(FC4HDRS:%=$(ROOTDIR)/fc4/%)
304ROOTFCHDRS= $(FCHDRS:%=$(ROOTDIR)/fibre-channel/%)
305ROOTFCIMPLHDRS= $(FCIMPLHDRS:%=$(ROOTDIR)/fibre-channel/impl/%)
306ROOTFCULPHDRS= $(FCULPHDRS:%=$(ROOTDIR)/fibre-channel/ulp/%)
307
308ROOTSDCARDHDRS= $(SDCARDHDRS:%=$(ROOTDIR)/sdcard/%)
309
310ROOTSYSEVENTHDRS= $(SYSEVENTHDRS:%=$(ROOTDIR)/sysevent/%)
311ROOTCONTRACTHDRS= $(CONTRACTHDRS:%=$(ROOTDIR)/contract/%)
312
313ROOTXHDRS= $(XHDRS:%=$(ROOTDIR)/%)
314
315ROOTUSBHDRS= $(USBHDRS:%=$(ROOTDIR)/usb/%)
316ROOTUSBAUDHDRS= $(USBAUDHDRS:%=$(ROOTDIR)/usb/clients/audio/%)
317ROOTUSBHUBDHDRS= $(USBHUBDHDRS:%=$(ROOTDIR)/usb/hubd/%)
318ROOTUSBHIDHDRS = $(USBHIDHDRS:%=$(ROOTDIR)/usb/clients/hid/%)
319ROOTUSBMSHDRS= $(USBMSHDRS:%=$(ROOTDIR)/usb/clients/mass_storage/%)
320ROOTUSBPRNHDRS= $(USBPRNHDRS:%=$(ROOTDIR)/usb/clients/printer/%)
321ROOTUSBCDCHDRS= $(USBCDCHDRS:%=$(ROOTDIR)/usb/clients/usbcdc/%)
322ROOTUSBVIDHDRS= $(USBVIDHDRS:%=$(ROOTDIR)/usb/clients/video/usbvc/%)
323ROOTUSBWCMHDRS= $(USBWCMHDRS:%=$(ROOTDIR)/usb/clients/usbinput/usbwcm/%)
324ROOTUSBCCIDHDRS= $(USBCCIDHDRS:%=$(ROOTDIR)/usb/clients/ccid/%)
325ROOTUGENHDRS= $(UGENHDRS:%=$(ROOTDIR)/usb/clients/ugen/%)
326
327ROOT1394HDRS= $(I1394HDRS:%=$(ROOTDIR)/1394/%)
328
329ROOTRSMHDRS= $(RSMHDRS:%=$(ROOTDIR)/rsm/%)
330
331ROOTDKTPHDRS= $(DKTPHDRS:%=$(ROOTDIR)/dktp/%)
332ROOTHOTPLUGHDRS= $(HOTPLUGHDRS:%=$(ROOTDIR)/hotplug/%)
333ROOTHOTPLUGPCIHDRS= $(HOTPLUGPCIHDRS:%=$(ROOTDIR)/hotplug/pci/%)
334
335ROOTTSOLHDRS= $(TSOLHDRS:%=$(ROOTDIR)/tsol/%)
336
337sparc_ROOTHDRS=	\
338		$(ROOTUSBHDRS) $(ROOTUSBHUBDHDRS) \
339		$(ROOTUSBAUDHDRS) $(ROOTUSBHIDHDRS) $(ROOTUSBMSHDRS) \
340		$(ROOTUSBPRNHDRS) $(ROOTUGENHDRS) $(ROOTUSBVIDHDRS)
341
342i386_ROOTHDRS=	\
343		$(ROOTHOTPLUGHDRS) \
344		$(ROOTHOTPLUGPCIHDRS)
345
346# install rules
347$(ROOTDIR)/%: %
348	$(INS.file)
349
350$(ROOTDIR)/crypto/%: crypto/%
351	$(INS.file)
352
353$(ROOTDIR)/fc4/%:		fc4/%
354	$(INS.file)
355
356$(ROOTDIR)/fibre-channel/%:	fibre-channel/%
357	$(INS.file)
358
359$(ROOTDIR)/fibre-channel/impl/%:	fibre-channel/impl/%
360	$(INS.file)
361
362$(ROOTDIR)/fibre-channel/ulp/:	fibre-channel/ulp/%
363	$(INS.file)
364
365$(ROOTDIR)/fm/%:                fm/%
366	$(INS.file)
367
368$(ROOTDIR)/fm/cpu/%:                fm/cpu/%
369	$(INS.file)
370
371$(ROOTDIR)/fm/io/%:                fm/io/%
372	$(INS.file)
373
374$(ROOTDIR)/fs/%: fs/%
375	$(INS.file)
376
377$(ROOTDIR)/ib/%:		ib/%
378	$(INS.file)
379
380$(ROOTDIR)/ib/clients/ibd/%:	ib/clients/ibd/%
381	$(INS.file)
382
383$(ROOTDIR)/ib/clients/of/%:		of/%
384	$(INS.file)
385
386$(ROOTDIR)/ib/clients/of/rdma/%:	ib/clients/of/rdma/%
387	$(INS.file)
388
389$(ROOTDIR)/ib/clients/of/sol_ofs/%:	ib/clients/of/sol_ofs/%
390	$(INS.file)
391
392$(ROOTDIR)/ib/clients/of/sol_uverbs/%:	ib/clients/of/sol_uverbs/%
393	$(INS.file)
394
395$(ROOTDIR)/ib/clients/of/sol_umad/%:	ib/clients/of/sol_umad/%
396	$(INS.file)
397
398$(ROOTDIR)/ib/clients/of/sol_ucma/%:	ib/clients/of/sol_ucma/%
399	$(INS.file)
400
401$(ROOTDIR)/ib/ibtl/%:		ib/ibtl/%
402	$(INS.file)
403
404$(ROOTDIR)/ib/ibtl/impl/%:	ib/ibtl/impl/%
405	$(INS.file)
406
407$(ROOTDIR)/ib/ibnex/%:		ib/ibnex/%
408	$(INS.file)
409
410$(ROOTDIR)/ib/mgt/%:		ib/mgt/%
411	$(INS.file)
412
413$(ROOTDIR)/ib/mgt/ibmf/%:	ib/mgt/ibmf/%
414	$(INS.file)
415
416$(ROOTDIR)/ib/adapters/tavor/%:	ib/adapters/tavor/%
417	$(INS.file)
418
419$(ROOTDIR)/ib/adapters/hermon/%:	ib/adapters/hermon/%
420	$(INS.file)
421
422$(ROOTDIR)/ib/adapters/%:	ib/adapters/%
423	$(INS.file)
424
425$(ROOTDIR)/scsi/%:		scsi/%
426	$(INS.file)
427
428$(ROOTDIR)/scsi/conf/%:		scsi/conf/%
429	$(INS.file)
430
431$(ROOTDIR)/scsi/generic/%:	scsi/generic/%
432	$(INS.file)
433
434$(ROOTDIR)/scsi/impl/%:		scsi/impl/%
435	$(INS.file)
436
437$(ROOTDIR)/scsi/targets/%:	scsi/targets/%
438	$(INS.file)
439
440$(ROOTDIR)/scsi/adapters/%:	scsi/adapters/%
441	$(INS.file)
442
443$(ROOTDIR)/sdcard/%:		sdcard/%
444	$(INS.file)
445
446$(ROOTDIR)/sysevent/%:		sysevent/%
447	$(INS.file)
448
449$(ROOTDIR)/contract/%:		contract/%
450	$(INS.file)
451
452$(ROOTDIR)/usb/%:		usb/%
453	$(INS.file)
454
455$(ROOTDIR)/usb/hubd/%:		usb/hubd/%
456	$(INS.file)
457
458$(ROOTDIR)/usb/clients/hid/%:	usb/clients/hid/%
459	$(INS.file)
460
461$(ROOTDIR)/usb/clients/mass_storage/%:	usb/clients/mass_storage/%
462	$(INS.file)
463
464$(ROOTDIR)/dktp/%: dktp/%
465	$(INS.file)
466
467$(ROOTDIR)/1394/%:                    1394/%
468	$(INS.file)
469
470$(ROOTDIR)/rsm/%:	rsm/%
471	$(INS.file)
472
473$(ROOTDIR)/tsol/%:	tsol/%
474	$(INS.file)
475
476$(ROOTDIRS):
477	$(INS.dir)
478