xref: /titanic_41/usr/src/uts/common/sys/Makefile.syshdrs (revision 65e70c04884b95e29d10e9933a3d55f0ec5af3be)
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
94idm/%.check:		idm/%.h
95	$(DOT_H_CHECK)
96
97iscsit/%.check:		iscsit/%.h
98	$(DOT_H_CHECK)
99
100lvm/%.check:	lvm/%.h
101	$(DOT_H_CHECK)
102
103pcmcia/%.check:	pcmcia/%.h
104	$(DOT_H_CHECK)
105
106scsi/%.check:		scsi/%.h
107	$(DOT_H_CHECK)
108
109scsi/conf/%.check:	scsi/conf/%.h
110	$(DOT_H_CHECK)
111
112scsi/generic/%.check:	scsi/generic/%.h
113	$(DOT_H_CHECK)
114
115scsi/impl/%.check:	scsi/impl/%.h
116	$(DOT_H_CHECK)
117
118scsi/targets/%.check:	scsi/targets/%.h
119	$(DOT_H_CHECK)
120
121scsi/adapters/%.check:	scsi/adapters/%.h
122	$(DOT_H_CHECK)
123
124sdcard/%.check:		sdcard/%.h
125	$(DOT_H_CHECK)
126
127sysevent/%.check:     sysevent/%.h
128	$(DOT_H_CHECK)
129
130contract/%.check:     contract/%.h
131	$(DOT_H_CHECK)
132
133usb/%.check:		usb/%.h
134	$(DOT_H_CHECK)
135
136usb/clients/audio/%.check:  usb/clients/audio/%.h
137	$(DOT_H_CHECK)
138
139usb/hubd/%.check:	usb/hubd/%.h
140	$(DOT_H_CHECK)
141
142usb/clients/hid/%.check:	usb/clients/hid/%.h
143	$(DOT_H_CHECK)
144
145usb/clients/hwarc/%.check:	usb/clients/hwarc/%.h
146	$(DOT_H_CHECK)
147
148usb/clients/mass_storage/%.check:	usb/clients/mass_storage/%.h
149	$(DOT_H_CHECK)
150
151usb/clients/printer/%.check:  usb/clients/printer/%.h
152	$(DOT_H_CHECK)
153
154usb/clients/usbcdc/%.check:	usb/clients/usbcdc/%.h
155	$(DOT_H_CHECK)
156
157usb/clients/video/usbvc/%.check:  usb/clients/video/usbvc/%.h
158	$(DOT_H_CHECK)
159
160usb/clients/usbinput/usbwcm/%.check:	usb/clients/usbinput/usbwcm/%.h
161	$(DOT_H_CHECK)
162
1631394/%.check:         1394/%.h
164	$(DOT_H_CHECK)
165
166rsm/%.check:	rsm/%.h
167	$(DOT_H_CHECK)
168
169tsol/%.check:	tsol/%.h
170	$(DOT_H_CHECK)
171
172ROOTDIR=	$(ROOT)/usr/include/sys
173
174ROOTDKTPDIR=	$(ROOTDIR)/dktp
175
176sparc_ROOTDIRS=	$(ROOTDKTPDIR) $(ROOTDIR)/scsi/adapters \
177		$(ROOTDIR)/scsi/targets
178
179i386_ROOTDIRS=	$(ROOTDKTPDIR) $(ROOTDIR)/scsi/adapters $(ROOTDIR)/scsi/targets \
180		$(ROOTDIR)/agp $(ROOTDIR)/sata
181
182ROOTDIRS=			\
183	$(ROOTDIR)		\
184	$(ROOTDIR)/audio	\
185	$(ROOTDIR)/av		\
186	$(ROOTDIR)/hotplug	\
187	$(ROOTDIR)/hotplug/pci	\
188	$(ROOTDIR)/crypto	\
189	$(ROOTDIR)/dcam		\
190	$(ROOTDIR)/iso		\
191	$(ROOTDIR)/fc4		\
192	$(ROOTDIR)/fibre-channel    \
193	$(ROOTDIR)/fibre-channel/impl	\
194	$(ROOTDIR)/fibre-channel/ulp	\
195	$(ROOTDIR)/fm		\
196	$(ROOTDIR)/fm/cpu	\
197	$(ROOTDIR)/fm/fs	\
198	$(ROOTDIR)/fm/io	\
199	$(ROOTDIR)/fs		\
200	$(ROOTDIR)/ib		\
201	$(ROOTDIR)/ib/adapters/tavor	\
202	$(ROOTDIR)/ib/adapters/hermon	\
203	$(ROOTDIR)/ib/ibtl	\
204	$(ROOTDIR)/ib/ibtl/impl	\
205	$(ROOTDIR)/ib/mgt	\
206	$(ROOTDIR)/ib/mgt/ibmf	\
207	$(ROOTDIR)/ib/ibnex	\
208	$(ROOTDIR)/ib/clients/ibd \
209	$(ROOTDIR)/ib/clients/of	\
210	$(ROOTDIR)/ib/clients/of/rdma	\
211	$(ROOTDIR)/ib/clients/of/sol_ofs	\
212	$(ROOTDIR)/ib/clients/of/sol_uverbs	\
213	$(ROOTDIR)/ib/clients/of/sol_umad	\
214	$(ROOTDIR)/ib/clients/of/sol_ucma	\
215	$(ROOTDIR)/idm		\
216	$(ROOTDIR)/iscsit	\
217	$(ROOTDIR)/lvm		\
218	$(ROOTDIR)/pcmcia	\
219	$(ROOTDIR)/scsi		\
220	$(ROOTDIR)/scsi/conf	\
221	$(ROOTDIR)/scsi/generic	\
222	$(ROOTDIR)/scsi/impl	\
223	$(ROOTDIR)/sdcard	\
224	$(ROOTDIR)/sysevent     \
225	$(ROOTDIR)/contract     \
226	$(ROOTDIR)/usb		\
227	$(ROOTDIR)/usb/hubd	\
228	$(ROOTDIR)/usb/clients	\
229	$(ROOTDIR)/usb/clients/audio  \
230	$(ROOTDIR)/usb/clients/hid \
231	$(ROOTDIR)/usb/clients/hwarc \
232	$(ROOTDIR)/usb/clients/mass_storage	\
233	$(ROOTDIR)/usb/clients/printer  \
234	$(ROOTDIR)/usb/clients/usbcdc  \
235	$(ROOTDIR)/usb/clients/video/usbvc  \
236	$(ROOTDIR)/usb/clients/usbinput/usbwcm \
237	$(ROOTDIR)/usb/clients/ugen  \
238	$(ROOTDIR)/uwb \
239	$(ROOTDIR)/uwb/uwba \
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/%)
273
274ROOTIDMHDRS= $(IDMHDRS:%=$(ROOTDIR)/idm/%)
275ROOTISCSITHDRS= $(ISCSITHDRS:%=$(ROOTDIR)/iscsit/%)
276
277ROOTISOHDRS= $(ISOHDRS:%=$(ROOTDIR)/iso/%)
278
279ROOTFMHDRS= $(FMHDRS:%=$(ROOTDIR)/fm/%)
280ROOTFMCPUHDRS= $(FMCPUHDRS:%=$(ROOTDIR)/fm/cpu/%)
281ROOTFMIOHDRS= $(FMIOHDRS:%=$(ROOTDIR)/fm/io/%)
282ROOTFMFSHDRS= $(FMFSHDRS:%=$(ROOTDIR)/fm/fs/%)
283
284ROOTFSHDRS= $(FSHDRS:%=$(ROOTDIR)/fs/%)
285
286ROOTLVMHDRS= $(ALL_LVMHDRS:%=$(ROOTDIR)/lvm/%)
287
288ROOTPCMCIAHDRS= $(PCMCIAHDRS:%=$(ROOTDIR)/pcmcia/%)
289
290ROOTSCSIHDRS= $(SCSIHDRS:%=$(ROOTDIR)/scsi/%)
291ROOTSATAGENHDRS= $(SATAGENHDRS:%=$(ROOTDIR)/sata/%)
292ROOTSCSICONFHDRS= $(SCSICONFHDRS:%=$(ROOTDIR)/scsi/conf/%)
293ROOTSCSIGENHDRS= $(SCSIGENHDRS:%=$(ROOTDIR)/scsi/generic/%)
294ROOTSCSIIMPLHDRS= $(SCSIIMPLHDRS:%=$(ROOTDIR)/scsi/impl/%)
295ROOTSCSITARGETSHDRS= $(SCSITARGETSHDRS:%=$(ROOTDIR)/scsi/targets/%)
296ROOTSCSICADHDRS= $(SCSICADHDRS:%=$(ROOTDIR)/scsi/adapters/%)
297ROOTSCSIADHDRS= $(SCSICADHDRS:%=$(ROOTDIR)/scsi/adapters/%)
298ROOTSCSIVHCIHDRS= $(SCSIVHCIHDRS:%=$(ROOTDIR)/scsi/adapters/%)
299ROOTSCSIISCSIHDRS= $(SCSIISCSIHDRS:%=$(ROOTDIR)/scsi/adapters/%)
300
301ROOTFC4HDRS= $(FC4HDRS:%=$(ROOTDIR)/fc4/%)
302ROOTFCHDRS= $(FCHDRS:%=$(ROOTDIR)/fibre-channel/%)
303ROOTFCIMPLHDRS= $(FCIMPLHDRS:%=$(ROOTDIR)/fibre-channel/impl/%)
304ROOTFCULPHDRS= $(FCULPHDRS:%=$(ROOTDIR)/fibre-channel/ulp/%)
305
306ROOTSDCARDHDRS= $(SDCARDHDRS:%=$(ROOTDIR)/sdcard/%)
307
308ROOTSYSEVENTHDRS= $(SYSEVENTHDRS:%=$(ROOTDIR)/sysevent/%)
309ROOTCONTRACTHDRS= $(CONTRACTHDRS:%=$(ROOTDIR)/contract/%)
310
311ROOTXHDRS= $(XHDRS:%=$(ROOTDIR)/%)
312
313ROOTUSBHDRS= $(USBHDRS:%=$(ROOTDIR)/usb/%)
314ROOTUWBHDRS= $(UWBHDRS:%=$(ROOTDIR)/uwb/%)
315ROOTUWBAHDRS= $(UWBAHDRS:%=$(ROOTDIR)/uwb/uwba/%)
316ROOTUSBAUDHDRS= $(USBAUDHDRS:%=$(ROOTDIR)/usb/clients/audio/%)
317ROOTUSBHUBDHDRS= $(USBHUBDHDRS:%=$(ROOTDIR)/usb/hubd/%)
318ROOTUSBHIDHDRS = $(USBHIDHDRS:%=$(ROOTDIR)/usb/clients/hid/%)
319ROOTUSBHWARCHDRS = $(USBHWARCHDRS:%=$(ROOTDIR)/usb/clients/hwarc/%)
320ROOTUSBMSHDRS= $(USBMSHDRS:%=$(ROOTDIR)/usb/clients/mass_storage/%)
321ROOTUSBPRNHDRS= $(USBPRNHDRS:%=$(ROOTDIR)/usb/clients/printer/%)
322ROOTUSBCDCHDRS= $(USBCDCHDRS:%=$(ROOTDIR)/usb/clients/usbcdc/%)
323ROOTUSBVIDHDRS= $(USBVIDHDRS:%=$(ROOTDIR)/usb/clients/video/usbvc/%)
324ROOTUSBWCMHDRS= $(USBWCMHDRS:%=$(ROOTDIR)/usb/clients/usbinput/usbwcm/%)
325ROOTUGENHDRS= $(UGENHDRS:%=$(ROOTDIR)/usb/clients/ugen/%)
326
327ROOT1394HDRS= $(I1394HDRS:%=$(ROOTDIR)/1394/%)
328
329ROOTRSMHDRS= $(RSMHDRS:%=$(ROOTDIR)/rsm/%)
330
331ROOTSDKTPHDRS= $(SDKTPHDRS:%=$(ROOTDIR)/dktp/%)
332ROOTDKTPHDRS= $(DKTPHDRS:%=$(ROOTDIR)/dktp/%)
333ROOTPCHDRS= $(PCHDRS:%=$(ROOTDIR)/%)
334ROOTHOTPLUGHDRS= $(HOTPLUGHDRS:%=$(ROOTDIR)/hotplug/%)
335ROOTHOTPLUGPCIHDRS= $(HOTPLUGPCIHDRS:%=$(ROOTDIR)/hotplug/pci/%)
336
337ROOTTSOLHDRS= $(TSOLHDRS:%=$(ROOTDIR)/tsol/%)
338
339sparc_ROOTHDRS=	$(ROOTSDKTPHDRS) $(ROOTSCSICADHDRS) $(ROOTSCSITARGETSHDRS) \
340		$(ROOTUSBHDRS) $(ROOTUSBHUBDHDRS) $(ROOTPCMCIAHDRS) \
341		$(ROOTUSBAUDHDRS) $(ROOTUSBHIDHDRS) $(ROOTUSBMSHDRS) \
342		$(ROOTUSBPRNHDRS) $(ROOTUGENHDRS) $(ROOTUSBVIDHDRS) \
343		$(ROOTUWBHDRS) $(ROOTUWBAHDRS) $(ROOTUSBHWARCHDRS)
344
345i386_ROOTHDRS=	$(ROOTDKTPHDRS) $(ROOTPCHDRS) $(ROOTSCSITARGETSHDRS)	\
346		$(ROOTSCSIVHCIHDRS) $(ROOTPCMCIAHDRS) $(ROOTHOTPLUGHDRS) \
347		$(ROOTHOTPLUGPCIHDRS) $(ROOTSATAGENHDRS) \
348		$(ROOTUWBHDRS) $(ROOTUWBAHDRS) $(ROOTUSBHWARCHDRS)
349
350# install rules
351$(ROOTDIR)/%: %
352	$(INS.file)
353
354$(ROOTDIR)/crypto/%: crypto/%
355	$(INS.file)
356
357$(ROOTDIR)/fc4/%:		fc4/%
358	$(INS.file)
359
360$(ROOTDIR)/fibre-channel/%:	fibre-channel/%
361	$(INS.file)
362
363$(ROOTDIR)/fibre-channel/impl/%:	fibre-channel/impl/%
364	$(INS.file)
365
366$(ROOTDIR)/fibre-channel/ulp/:	fibre-channel/ulp/%
367	$(INS.file)
368
369$(ROOTDIR)/fm/%:                fm/%
370	$(INS.file)
371
372$(ROOTDIR)/fm/cpu/%:                fm/cpu/%
373	$(INS.file)
374
375$(ROOTDIR)/fm/io/%:                fm/io/%
376	$(INS.file)
377
378$(ROOTDIR)/fs/%: fs/%
379	$(INS.file)
380
381$(ROOTDIR)/ib/%:		ib/%
382	$(INS.file)
383
384$(ROOTDIR)/ib/clients/ibd/%:	ib/clients/ibd/%
385	$(INS.file)
386
387$(ROOTDIR)/ib/clients/of/%:		of/%
388	$(INS.file)
389
390$(ROOTDIR)/ib/clients/of/rdma/%:	ib/clients/of/rdma/%
391	$(INS.file)
392
393$(ROOTDIR)/ib/clients/of/sol_ofs/%:	ib/clients/of/sol_ofs/%
394	$(INS.file)
395
396$(ROOTDIR)/ib/clients/of/sol_uverbs/%:	ib/clients/of/sol_uverbs/%
397	$(INS.file)
398
399$(ROOTDIR)/ib/clients/of/sol_umad/%:	ib/clients/of/sol_umad/%
400	$(INS.file)
401
402$(ROOTDIR)/ib/clients/of/sol_ucma/%:	ib/clients/of/sol_ucma/%
403	$(INS.file)
404
405$(ROOTDIR)/ib/ibtl/%:		ib/ibtl/%
406	$(INS.file)
407
408$(ROOTDIR)/ib/ibtl/impl/%:	ib/ibtl/impl/%
409	$(INS.file)
410
411$(ROOTDIR)/ib/ibnex/%:		ib/ibnex/%
412	$(INS.file)
413
414$(ROOTDIR)/ib/mgt/%:		ib/mgt/%
415	$(INS.file)
416
417$(ROOTDIR)/ib/mgt/ibmf/%:	ib/mgt/ibmf/%
418	$(INS.file)
419
420$(ROOTDIR)/ib/adapters/tavor/%:	ib/adapters/tavor/%
421	$(INS.file)
422
423$(ROOTDIR)/ib/adapters/hermon/%:	ib/adapters/hermon/%
424	$(INS.file)
425
426$(ROOTDIR)/lvm/%: lvm/%
427	$(INS.file)
428
429$(ROOTDIR)/pcmcia/%:		pcmcia/%
430	$(INS.file)
431
432$(ROOTDIR)/scsi/%:		scsi/%
433	$(INS.file)
434
435$(ROOTDIR)/scsi/conf/%:		scsi/conf/%
436	$(INS.file)
437
438$(ROOTDIR)/scsi/generic/%:	scsi/generic/%
439	$(INS.file)
440
441$(ROOTDIR)/scsi/impl/%:		scsi/impl/%
442	$(INS.file)
443
444$(ROOTDIR)/scsi/targets/%:	scsi/targets/%
445	$(INS.file)
446
447$(ROOTDIR)/scsi/adapters/%:	scsi/adapters/%
448	$(INS.file)
449
450$(ROOTDIR)/sdcard/%:		sdcard/%
451	$(INS.file)
452
453$(ROOTDIR)/sysevent/%:		sysevent/%
454	$(INS.file)
455
456$(ROOTDIR)/contract/%:		contract/%
457	$(INS.file)
458
459$(ROOTDIR)/usb/%:		usb/%
460	$(INS.file)
461
462$(ROOTDIR)/usb/hubd/%:		usb/hubd/%
463	$(INS.file)
464
465$(ROOTDIR)/usb/clients/hid/%:	usb/clients/hid/%
466	$(INS.file)
467
468$(ROOTDIR)/usb/clients/mass_storage/%:	usb/clients/mass_storage/%
469	$(INS.file)
470
471$(ROOTDIR)/dktp/%: dktp/%
472	$(INS.file)
473
474$(ROOTDIR)/1394/%:                    1394/%
475	$(INS.file)
476
477$(ROOTDIR)/rsm/%:	rsm/%
478	$(INS.file)
479
480$(ROOTDIR)/tsol/%:	tsol/%
481	$(INS.file)
482
483$(ROOTDIRS):
484	$(INS.dir)
485
486