xref: /titanic_41/usr/src/uts/common/sys/Makefile.syshdrs (revision aa98ce2c4ecbce8afe8b7b253a911ab24fdded32)
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 2014 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/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 $(ROOTDIR)/scsi/targets \
178		$(ROOTDIR)/agp $(ROOTDIR)/sata
179
180ROOTDIRS=			\
181	$(ROOTDIR)		\
182	$(ROOTDIR)/audio	\
183	$(ROOTDIR)/av		\
184	$(ROOTDIR)/hotplug	\
185	$(ROOTDIR)/hotplug/pci	\
186	$(ROOTDIR)/crypto	\
187	$(ROOTDIR)/dcam		\
188	$(ROOTDIR)/iso		\
189	$(ROOTDIR)/fc4		\
190	$(ROOTDIR)/fibre-channel    \
191	$(ROOTDIR)/fibre-channel/impl	\
192	$(ROOTDIR)/fibre-channel/ulp	\
193	$(ROOTDIR)/fm		\
194	$(ROOTDIR)/fm/cpu	\
195	$(ROOTDIR)/fm/fs	\
196	$(ROOTDIR)/fm/io	\
197	$(ROOTDIR)/fs		\
198	$(ROOTDIR)/ib		\
199	$(ROOTDIR)/ib/adapters/tavor	\
200	$(ROOTDIR)/ib/adapters/hermon	\
201	$(ROOTDIR)/ib/adapters	\
202	$(ROOTDIR)/ib/ibtl	\
203	$(ROOTDIR)/ib/ibtl/impl	\
204	$(ROOTDIR)/ib/mgt	\
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	\
214	$(ROOTDIR)/idm		\
215	$(ROOTDIR)/iscsit	\
216	$(ROOTDIR)/lvm		\
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
282ROOTLVMHDRS= $(ALL_LVMHDRS:%=$(ROOTDIR)/lvm/%)
283
284ROOTSCSIHDRS= $(SCSIHDRS:%=$(ROOTDIR)/scsi/%)
285ROOTSATAGENHDRS= $(SATAGENHDRS:%=$(ROOTDIR)/sata/%)
286ROOTSCSICONFHDRS= $(SCSICONFHDRS:%=$(ROOTDIR)/scsi/conf/%)
287ROOTSCSIGENHDRS= $(SCSIGENHDRS:%=$(ROOTDIR)/scsi/generic/%)
288ROOTSCSIIMPLHDRS= $(SCSIIMPLHDRS:%=$(ROOTDIR)/scsi/impl/%)
289ROOTSCSITARGETSHDRS= $(SCSITARGETSHDRS:%=$(ROOTDIR)/scsi/targets/%)
290ROOTSCSICADHDRS= $(SCSICADHDRS:%=$(ROOTDIR)/scsi/adapters/%)
291ROOTSCSIADHDRS= $(SCSICADHDRS:%=$(ROOTDIR)/scsi/adapters/%)
292ROOTSCSIVHCIHDRS= $(SCSIVHCIHDRS:%=$(ROOTDIR)/scsi/adapters/%)
293ROOTSCSIISCSIHDRS= $(SCSIISCSIHDRS:%=$(ROOTDIR)/scsi/adapters/%)
294
295ROOTFC4HDRS= $(FC4HDRS:%=$(ROOTDIR)/fc4/%)
296ROOTFCHDRS= $(FCHDRS:%=$(ROOTDIR)/fibre-channel/%)
297ROOTFCIMPLHDRS= $(FCIMPLHDRS:%=$(ROOTDIR)/fibre-channel/impl/%)
298ROOTFCULPHDRS= $(FCULPHDRS:%=$(ROOTDIR)/fibre-channel/ulp/%)
299
300ROOTSDCARDHDRS= $(SDCARDHDRS:%=$(ROOTDIR)/sdcard/%)
301
302ROOTSYSEVENTHDRS= $(SYSEVENTHDRS:%=$(ROOTDIR)/sysevent/%)
303ROOTCONTRACTHDRS= $(CONTRACTHDRS:%=$(ROOTDIR)/contract/%)
304
305ROOTXHDRS= $(XHDRS:%=$(ROOTDIR)/%)
306
307ROOTUSBHDRS= $(USBHDRS:%=$(ROOTDIR)/usb/%)
308ROOTUSBAUDHDRS= $(USBAUDHDRS:%=$(ROOTDIR)/usb/clients/audio/%)
309ROOTUSBHUBDHDRS= $(USBHUBDHDRS:%=$(ROOTDIR)/usb/hubd/%)
310ROOTUSBHIDHDRS = $(USBHIDHDRS:%=$(ROOTDIR)/usb/clients/hid/%)
311ROOTUSBMSHDRS= $(USBMSHDRS:%=$(ROOTDIR)/usb/clients/mass_storage/%)
312ROOTUSBPRNHDRS= $(USBPRNHDRS:%=$(ROOTDIR)/usb/clients/printer/%)
313ROOTUSBCDCHDRS= $(USBCDCHDRS:%=$(ROOTDIR)/usb/clients/usbcdc/%)
314ROOTUSBVIDHDRS= $(USBVIDHDRS:%=$(ROOTDIR)/usb/clients/video/usbvc/%)
315ROOTUSBWCMHDRS= $(USBWCMHDRS:%=$(ROOTDIR)/usb/clients/usbinput/usbwcm/%)
316ROOTUGENHDRS= $(UGENHDRS:%=$(ROOTDIR)/usb/clients/ugen/%)
317
318ROOT1394HDRS= $(I1394HDRS:%=$(ROOTDIR)/1394/%)
319
320ROOTRSMHDRS= $(RSMHDRS:%=$(ROOTDIR)/rsm/%)
321
322ROOTSDKTPHDRS= $(SDKTPHDRS:%=$(ROOTDIR)/dktp/%)
323ROOTDKTPHDRS= $(DKTPHDRS:%=$(ROOTDIR)/dktp/%)
324ROOTPCHDRS= $(PCHDRS:%=$(ROOTDIR)/%)
325ROOTHOTPLUGHDRS= $(HOTPLUGHDRS:%=$(ROOTDIR)/hotplug/%)
326ROOTHOTPLUGPCIHDRS= $(HOTPLUGPCIHDRS:%=$(ROOTDIR)/hotplug/pci/%)
327
328ROOTTSOLHDRS= $(TSOLHDRS:%=$(ROOTDIR)/tsol/%)
329
330sparc_ROOTHDRS=	$(ROOTSDKTPHDRS) $(ROOTSCSICADHDRS) $(ROOTSCSITARGETSHDRS) \
331		$(ROOTUSBHDRS) $(ROOTUSBHUBDHDRS) \
332		$(ROOTUSBAUDHDRS) $(ROOTUSBHIDHDRS) $(ROOTUSBMSHDRS) \
333		$(ROOTUSBPRNHDRS) $(ROOTUGENHDRS) $(ROOTUSBVIDHDRS)
334
335i386_ROOTHDRS=	$(ROOTDKTPHDRS) $(ROOTPCHDRS) $(ROOTSCSITARGETSHDRS)	\
336		$(ROOTSCSIVHCIHDRS) $(ROOTHOTPLUGHDRS) \
337		$(ROOTHOTPLUGPCIHDRS) $(ROOTSATAGENHDRS)
338
339# install rules
340$(ROOTDIR)/%: %
341	$(INS.file)
342
343$(ROOTDIR)/crypto/%: crypto/%
344	$(INS.file)
345
346$(ROOTDIR)/fc4/%:		fc4/%
347	$(INS.file)
348
349$(ROOTDIR)/fibre-channel/%:	fibre-channel/%
350	$(INS.file)
351
352$(ROOTDIR)/fibre-channel/impl/%:	fibre-channel/impl/%
353	$(INS.file)
354
355$(ROOTDIR)/fibre-channel/ulp/:	fibre-channel/ulp/%
356	$(INS.file)
357
358$(ROOTDIR)/fm/%:                fm/%
359	$(INS.file)
360
361$(ROOTDIR)/fm/cpu/%:                fm/cpu/%
362	$(INS.file)
363
364$(ROOTDIR)/fm/io/%:                fm/io/%
365	$(INS.file)
366
367$(ROOTDIR)/fs/%: fs/%
368	$(INS.file)
369
370$(ROOTDIR)/ib/%:		ib/%
371	$(INS.file)
372
373$(ROOTDIR)/ib/clients/ibd/%:	ib/clients/ibd/%
374	$(INS.file)
375
376$(ROOTDIR)/ib/clients/of/%:		of/%
377	$(INS.file)
378
379$(ROOTDIR)/ib/clients/of/rdma/%:	ib/clients/of/rdma/%
380	$(INS.file)
381
382$(ROOTDIR)/ib/clients/of/sol_ofs/%:	ib/clients/of/sol_ofs/%
383	$(INS.file)
384
385$(ROOTDIR)/ib/clients/of/sol_uverbs/%:	ib/clients/of/sol_uverbs/%
386	$(INS.file)
387
388$(ROOTDIR)/ib/clients/of/sol_umad/%:	ib/clients/of/sol_umad/%
389	$(INS.file)
390
391$(ROOTDIR)/ib/clients/of/sol_ucma/%:	ib/clients/of/sol_ucma/%
392	$(INS.file)
393
394$(ROOTDIR)/ib/ibtl/%:		ib/ibtl/%
395	$(INS.file)
396
397$(ROOTDIR)/ib/ibtl/impl/%:	ib/ibtl/impl/%
398	$(INS.file)
399
400$(ROOTDIR)/ib/ibnex/%:		ib/ibnex/%
401	$(INS.file)
402
403$(ROOTDIR)/ib/mgt/%:		ib/mgt/%
404	$(INS.file)
405
406$(ROOTDIR)/ib/mgt/ibmf/%:	ib/mgt/ibmf/%
407	$(INS.file)
408
409$(ROOTDIR)/ib/adapters/tavor/%:	ib/adapters/tavor/%
410	$(INS.file)
411
412$(ROOTDIR)/ib/adapters/hermon/%:	ib/adapters/hermon/%
413	$(INS.file)
414
415$(ROOTDIR)/ib/adapters/%:	ib/adapters/%
416	$(INS.file)
417
418$(ROOTDIR)/lvm/%: lvm/%
419	$(INS.file)
420
421$(ROOTDIR)/scsi/%:		scsi/%
422	$(INS.file)
423
424$(ROOTDIR)/scsi/conf/%:		scsi/conf/%
425	$(INS.file)
426
427$(ROOTDIR)/scsi/generic/%:	scsi/generic/%
428	$(INS.file)
429
430$(ROOTDIR)/scsi/impl/%:		scsi/impl/%
431	$(INS.file)
432
433$(ROOTDIR)/scsi/targets/%:	scsi/targets/%
434	$(INS.file)
435
436$(ROOTDIR)/scsi/adapters/%:	scsi/adapters/%
437	$(INS.file)
438
439$(ROOTDIR)/sdcard/%:		sdcard/%
440	$(INS.file)
441
442$(ROOTDIR)/sysevent/%:		sysevent/%
443	$(INS.file)
444
445$(ROOTDIR)/contract/%:		contract/%
446	$(INS.file)
447
448$(ROOTDIR)/usb/%:		usb/%
449	$(INS.file)
450
451$(ROOTDIR)/usb/hubd/%:		usb/hubd/%
452	$(INS.file)
453
454$(ROOTDIR)/usb/clients/hid/%:	usb/clients/hid/%
455	$(INS.file)
456
457$(ROOTDIR)/usb/clients/mass_storage/%:	usb/clients/mass_storage/%
458	$(INS.file)
459
460$(ROOTDIR)/dktp/%: dktp/%
461	$(INS.file)
462
463$(ROOTDIR)/1394/%:                    1394/%
464	$(INS.file)
465
466$(ROOTDIR)/rsm/%:	rsm/%
467	$(INS.file)
468
469$(ROOTDIR)/tsol/%:	tsol/%
470	$(INS.file)
471
472$(ROOTDIRS):
473	$(INS.dir)
474
475