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