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