xref: /titanic_44/usr/src/uts/common/sys/Makefile.syshdrs (revision 628e3cbed6489fa1db545d8524a06cd6535af456)
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 2008 Sun Microsystems, Inc.  All rights reserved.
22# Use is subject to license terms.
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/ibtl/%.check:	ib/ibtl/%.h
57	$(DOT_H_CHECK)
58
59ib/ibtl/impl/%.check:	ib/ibtl/impl/%.h
60	$(DOT_H_CHECK)
61
62ib/ibnex/%.check:	ib/ibnex/%.h
63	$(DOT_H_CHECK)
64
65ib/mgt/%.check:	ib/mgt/%.h
66	$(DOT_H_CHECK)
67
68ib/mgt/ibmf/%.check:	ib/mgt/ibmf/%.h
69	$(DOT_H_CHECK)
70
71ib/adapters/tavor/%.check:	ib/adapters/tavor/%.h
72	$(DOT_H_CHECK)
73
74ib/adapters/hermon/%.check:	ib/adapters/hermon/%.h
75	$(DOT_H_CHECK)
76
77lvm/%.check:	lvm/%.h
78	$(DOT_H_CHECK)
79
80pcmcia/%.check:	pcmcia/%.h
81	$(DOT_H_CHECK)
82
83scsi/%.check:		scsi/%.h
84	$(DOT_H_CHECK)
85
86scsi/conf/%.check:	scsi/conf/%.h
87	$(DOT_H_CHECK)
88
89scsi/generic/%.check:	scsi/generic/%.h
90	$(DOT_H_CHECK)
91
92scsi/impl/%.check:	scsi/impl/%.h
93	$(DOT_H_CHECK)
94
95scsi/targets/%.check:	scsi/targets/%.h
96	$(DOT_H_CHECK)
97
98scsi/adapters/%.check:	scsi/adapters/%.h
99	$(DOT_H_CHECK)
100
101sdcard/%.check:		sdcard/%.h
102	$(DOT_H_CHECK)
103
104sysevent/%.check:     sysevent/%.h
105	$(DOT_H_CHECK)
106
107contract/%.check:     contract/%.h
108	$(DOT_H_CHECK)
109
110usb/%.check:		usb/%.h
111	$(DOT_H_CHECK)
112
113usb/clients/audio/%.check:  usb/clients/audio/%.h
114	$(DOT_H_CHECK)
115
116usb/hubd/%.check:	usb/hubd/%.h
117	$(DOT_H_CHECK)
118
119usb/clients/hid/%.check:	usb/clients/hid/%.h
120	$(DOT_H_CHECK)
121
122usb/clients/mass_storage/%.check:	usb/clients/mass_storage/%.h
123	$(DOT_H_CHECK)
124
125usb/clients/hid/%.check:	usb/clients/hid/%.h
126	$(DOT_H_CHECK)
127
128usb/clients/printer/%.check:  usb/clients/printer/%.h
129	$(DOT_H_CHECK)
130
131usb/clients/usbcdc/%.check:	usb/clients/usbcdc/%.h
132	$(DOT_H_CHECK)
133
134usb/clients/video/usbvc/%.check:  usb/clients/video/usbvc/%.h
135	$(DOT_H_CHECK)
136
1371394/%.check:         1394/%.h
138	$(DOT_H_CHECK)
139
140rsm/%.check:	rsm/%.h
141	$(DOT_H_CHECK)
142
143tsol/%.check:	tsol/%.h
144	$(DOT_H_CHECK)
145
146ROOTDIR=	$(ROOT)/usr/include/sys
147
148ROOTDKTPDIR=	$(ROOTDIR)/dktp
149
150sparc_ROOTDIRS=	$(ROOTDKTPDIR) $(ROOTDIR)/scsi/adapters \
151		$(ROOTDIR)/scsi/targets \
152		$(ROOTDIR)/av
153
154i386_ROOTDIRS=	$(ROOTDKTPDIR) $(ROOTDIR)/scsi/adapters $(ROOTDIR)/scsi/targets \
155		$(ROOTDIR)/agp $(ROOTDIR)/sata
156
157ROOTDIRS=			\
158	$(ROOTDIR)		\
159	$(ROOTDIR)/audio	\
160	$(ROOTDIR)/hotplug	\
161	$(ROOTDIR)/hotplug/pci	\
162	$(ROOTDIR)/crypto	\
163	$(ROOTDIR)/dcam		\
164	$(ROOTDIR)/iso		\
165	$(ROOTDIR)/fc4		\
166	$(ROOTDIR)/fibre-channel    \
167	$(ROOTDIR)/fibre-channel/impl	\
168	$(ROOTDIR)/fibre-channel/ulp	\
169	$(ROOTDIR)/fm		\
170	$(ROOTDIR)/fm/cpu	\
171	$(ROOTDIR)/fm/fs	\
172	$(ROOTDIR)/fm/io	\
173	$(ROOTDIR)/fs		\
174	$(ROOTDIR)/ib		\
175	$(ROOTDIR)/ib/adapters/tavor	\
176	$(ROOTDIR)/ib/adapters/hermon	\
177	$(ROOTDIR)/ib/ibtl	\
178	$(ROOTDIR)/ib/ibtl/impl	\
179	$(ROOTDIR)/ib/mgt	\
180	$(ROOTDIR)/ib/mgt/ibmf	\
181	$(ROOTDIR)/ib/ibnex	\
182	$(ROOTDIR)/ib/clients/ibd \
183	$(ROOTDIR)/lvm		\
184	$(ROOTDIR)/pcmcia	\
185	$(ROOTDIR)/scsi		\
186	$(ROOTDIR)/scsi/conf	\
187	$(ROOTDIR)/scsi/generic	\
188	$(ROOTDIR)/scsi/impl	\
189	$(ROOTDIR)/sdcard	\
190	$(ROOTDIR)/sysevent     \
191	$(ROOTDIR)/contract     \
192	$(ROOTDIR)/usb		\
193	$(ROOTDIR)/usb/hubd	\
194	$(ROOTDIR)/usb/clients	\
195	$(ROOTDIR)/usb/clients/audio  \
196	$(ROOTDIR)/usb/clients/hid \
197	$(ROOTDIR)/usb/clients/mass_storage	\
198	$(ROOTDIR)/usb/clients/printer  \
199	$(ROOTDIR)/usb/clients/usbcdc  \
200	$(ROOTDIR)/usb/clients/video/usbvc  \
201	$(ROOTDIR)/usb/clients/ugen  \
202	$(ROOTDIR)/1394         \
203	$(ROOTDIR)/rsm		\
204	$(ROOTDIR)/tsol		\
205	$($(MACH)_ROOTDIRS)
206
207
208ROOTHDRS=				\
209	$($(MACH)_HDRS:%=$(ROOTDIR)/%)	\
210	$(HDRS:%=$(ROOTDIR)/%)
211
212ROOTAUDHDRS= $(AUDIOHDRS:%=$(ROOTDIR)/audio/%)
213
214ROOTAVHDRS= $(AVHDRS:%=$(ROOTDIR)/av/%)
215
216ROOTCRYPTOHDRS= $(CRYPTOHDRS:%=$(ROOTDIR)/crypto/%)
217
218ROOTDCAMHDRS= $(DCAMHDRS:%=$(ROOTDIR)/dcam/%)
219
220ROOTIBHDRS= $(IBHDRS:%=$(ROOTDIR)/ib/%)
221ROOTIBDHDRS= $(IBDHDRS:%=$(ROOTDIR)/ib/clients/ibd/%)
222ROOTIBTLHDRS= $(IBTLHDRS:%=$(ROOTDIR)/ib/ibtl/%)
223ROOTIBTLIMPLHDRS= $(IBTLIMPLHDRS:%=$(ROOTDIR)/ib/ibtl/impl/%)
224ROOTIBNEXHDRS= $(IBNEXHDRS:%=$(ROOTDIR)/ib/ibnex/%)
225ROOTIBMGTHDRS= $(IBMGTHDRS:%=$(ROOTDIR)/ib/mgt/%)
226ROOTIBMFHDRS= $(IBMFHDRS:%=$(ROOTDIR)/ib/mgt/ibmf/%)
227ROOTTAVORHDRS= $(TAVORHDRS:%=$(ROOTDIR)/ib/adapters/tavor/%)
228ROOTHERMONHDRS= $(HERMONHDRS:%=$(ROOTDIR)/ib/adapters/hermon/%)
229
230ROOTISOHDRS= $(ISOHDRS:%=$(ROOTDIR)/iso/%)
231
232ROOTFMHDRS= $(FMHDRS:%=$(ROOTDIR)/fm/%)
233ROOTFMCPUHDRS= $(FMCPUHDRS:%=$(ROOTDIR)/fm/cpu/%)
234ROOTFMIOHDRS= $(FMIOHDRS:%=$(ROOTDIR)/fm/io/%)
235ROOTFMFSHDRS= $(FMFSHDRS:%=$(ROOTDIR)/fm/fs/%)
236
237ROOTFSHDRS= $(FSHDRS:%=$(ROOTDIR)/fs/%)
238
239ROOTLVMHDRS= $(ALL_LVMHDRS:%=$(ROOTDIR)/lvm/%)
240
241ROOTPCMCIAHDRS= $(PCMCIAHDRS:%=$(ROOTDIR)/pcmcia/%)
242
243ROOTSCSIHDRS= $(SCSIHDRS:%=$(ROOTDIR)/scsi/%)
244ROOTSATAGENHDRS= $(SATAGENHDRS:%=$(ROOTDIR)/sata/%)
245ROOTSCSICONFHDRS= $(SCSICONFHDRS:%=$(ROOTDIR)/scsi/conf/%)
246ROOTSCSIGENHDRS= $(SCSIGENHDRS:%=$(ROOTDIR)/scsi/generic/%)
247ROOTSCSIIMPLHDRS= $(SCSIIMPLHDRS:%=$(ROOTDIR)/scsi/impl/%)
248ROOTSCSITARGETSHDRS= $(SCSITARGETSHDRS:%=$(ROOTDIR)/scsi/targets/%)
249ROOTSCSICADHDRS= $(SCSICADHDRS:%=$(ROOTDIR)/scsi/adapters/%)
250ROOTSCSIADHDRS= $(SCSICADHDRS:%=$(ROOTDIR)/scsi/adapters/%)
251ROOTSCSIVHCIHDRS= $(SCSIVHCIHDRS:%=$(ROOTDIR)/scsi/adapters/%)
252ROOTSCSIISCSIHDRS= $(SCSIISCSIHDRS:%=$(ROOTDIR)/scsi/adapters/%)
253
254ROOTFC4HDRS= $(FC4HDRS:%=$(ROOTDIR)/fc4/%)
255ROOTFCHDRS= $(FCHDRS:%=$(ROOTDIR)/fibre-channel/%)
256ROOTFCIMPLHDRS= $(FCIMPLHDRS:%=$(ROOTDIR)/fibre-channel/impl/%)
257ROOTFCULPHDRS= $(FCULPHDRS:%=$(ROOTDIR)/fibre-channel/ulp/%)
258
259ROOTSDCARDHDRS= $(SDCARDHDRS:%=$(ROOTDIR)/sdcard/%)
260
261ROOTSYSEVENTHDRS= $(SYSEVENTHDRS:%=$(ROOTDIR)/sysevent/%)
262ROOTCONTRACTHDRS= $(CONTRACTHDRS:%=$(ROOTDIR)/contract/%)
263
264ROOTXHDRS= $(XHDRS:%=$(ROOTDIR)/%)
265
266ROOTUSBHDRS= $(USBHDRS:%=$(ROOTDIR)/usb/%)
267ROOTUSBAUDHDRS= $(USBAUDHDRS:%=$(ROOTDIR)/usb/clients/audio/%)
268ROOTUSBHUBDHDRS= $(USBHUBDHDRS:%=$(ROOTDIR)/usb/hubd/%)
269ROOTUSBHIDHDRS = $(USBHIDHDRS:%=$(ROOTDIR)/usb/clients/hid/%)
270ROOTUSBMSHDRS= $(USBMSHDRS:%=$(ROOTDIR)/usb/clients/mass_storage/%)
271ROOTUSBPRNHDRS= $(USBPRNHDRS:%=$(ROOTDIR)/usb/clients/printer/%)
272ROOTUSBCDCHDRS= $(USBCDCHDRS:%=$(ROOTDIR)/usb/clients/usbcdc/%)
273ROOTUSBVIDHDRS= $(USBVIDHDRS:%=$(ROOTDIR)/usb/clients/video/usbvc/%)
274ROOTUGENHDRS= $(UGENHDRS:%=$(ROOTDIR)/usb/clients/ugen/%)
275
276ROOT1394HDRS= $(I1394HDRS:%=$(ROOTDIR)/1394/%)
277
278ROOTRSMHDRS= $(RSMHDRS:%=$(ROOTDIR)/rsm/%)
279
280ROOTSDKTPHDRS= $(SDKTPHDRS:%=$(ROOTDIR)/dktp/%)
281ROOTDKTPHDRS= $(DKTPHDRS:%=$(ROOTDIR)/dktp/%)
282ROOTPCHDRS= $(PCHDRS:%=$(ROOTDIR)/%)
283ROOTHOTPLUGHDRS= $(HOTPLUGHDRS:%=$(ROOTDIR)/hotplug/%)
284ROOTHOTPLUGPCIHDRS= $(HOTPLUGPCIHDRS:%=$(ROOTDIR)/hotplug/pci/%)
285
286ROOTTSOLHDRS= $(TSOLHDRS:%=$(ROOTDIR)/tsol/%)
287
288sparc_ROOTHDRS=	$(ROOTSDKTPHDRS) $(ROOTSCSICADHDRS) $(ROOTSCSITARGETSHDRS) \
289		$(ROOTUSBHDRS) $(ROOTUSBHUBDHDRS) $(ROOTPCMCIAHDRS) \
290		$(ROOTUSBAUDHDRS) $(ROOTUSBHIDHDRS) $(ROOTUSBMSHDRS) \
291		$(ROOTUSBPRNHDRS) $(ROOTUGENHDRS) $(ROOTUSBVIDHDRS)
292
293i386_ROOTHDRS=	$(ROOTDKTPHDRS) $(ROOTPCHDRS) $(ROOTSCSITARGETSHDRS)	\
294		$(ROOTSCSIVHCIHDRS) $(ROOTPCMCIAHDRS) $(ROOTHOTPLUGHDRS) \
295		$(ROOTHOTPLUGPCIHDRS) $(ROOTSATAGENHDRS)
296
297# install rules
298$(ROOTDIR)/%: %
299	$(INS.file)
300
301$(ROOTDIR)/crypto/%: crypto/%
302	$(INS.file)
303
304$(ROOTDIR)/fc4/%:		fc4/%
305	$(INS.file)
306
307$(ROOTDIR)/fibre-channel/%:	fibre-channel/%
308	$(INS.file)
309
310$(ROOTDIR)/fibre-channel/impl/%:	fibre-channel/impl/%
311	$(INS.file)
312
313$(ROOTDIR)/fibre-channel/ulp/:	fibre-channel/ulp/%
314	$(INS.file)
315
316$(ROOTDIR)/fm/%:                fm/%
317	$(INS.file)
318
319$(ROOTDIR)/fm/cpu/%:                fm/cpu/%
320	$(INS.file)
321
322$(ROOTDIR)/fm/io/%:                fm/io/%
323	$(INS.file)
324
325$(ROOTDIR)/fs/%: fs/%
326	$(INS.file)
327
328$(ROOTDIR)/ib/%:		ib/%
329	$(INS.file)
330
331$(ROOTDIR)/ib/clients/ibd/%:	ib/clients/ibd/%
332	$(INS.file)
333
334$(ROOTDIR)/ib/ibtl/%:		ib/ibtl/%
335	$(INS.file)
336
337$(ROOTDIR)/ib/ibtl/impl/%:	ib/ibtl/impl/%
338	$(INS.file)
339
340$(ROOTDIR)/ib/ibnex/%:		ib/ibnex/%
341	$(INS.file)
342
343$(ROOTDIR)/ib/mgt/%:		ib/mgt/%
344	$(INS.file)
345
346$(ROOTDIR)/ib/mgt/ibmf/%:	ib/mgt/ibmf/%
347	$(INS.file)
348
349$(ROOTDIR)/ib/adapters/tavor/%:	ib/adapters/tavor/%
350	$(INS.file)
351
352$(ROOTDIR)/ib/adapters/hermon/%:	ib/adapters/hermon/%
353	$(INS.file)
354
355$(ROOTDIR)/lvm/%: lvm/%
356	$(INS.file)
357
358$(ROOTDIR)/pcmcia/%:		pcmcia/%
359	$(INS.file)
360
361$(ROOTDIR)/scsi/%:		scsi/%
362	$(INS.file)
363
364$(ROOTDIR)/scsi/conf/%:		scsi/conf/%
365	$(INS.file)
366
367$(ROOTDIR)/scsi/generic/%:	scsi/generic/%
368	$(INS.file)
369
370$(ROOTDIR)/scsi/impl/%:		scsi/impl/%
371	$(INS.file)
372
373$(ROOTDIR)/scsi/targets/%:	scsi/targets/%
374	$(INS.file)
375
376$(ROOTDIR)/scsi/adapters/%:	scsi/adapters/%
377	$(INS.file)
378
379$(ROOTDIR)/sdcard/%:		sdcard/%
380	$(INS.file)
381
382$(ROOTDIR)/sysevent/%:		sysevent/%
383	$(INS.file)
384
385$(ROOTDIR)/contract/%:		contract/%
386	$(INS.file)
387
388$(ROOTDIR)/usb/%:		usb/%
389	$(INS.file)
390
391$(ROOTDIR)/usb/hubd/%:		usb/hubd/%
392	$(INS.file)
393
394$(ROOTDIR)/usb/clients/hid/%:	usb/clients/hid/%
395	$(INS.file)
396
397$(ROOTDIR)/usb/clients/mass_storage/%:	usb/clients/mass_storage/%
398	$(INS.file)
399
400$(ROOTDIR)/dktp/%: dktp/%
401	$(INS.file)
402
403$(ROOTDIR)/1394/%:                    1394/%
404	$(INS.file)
405
406$(ROOTDIR)/rsm/%:	rsm/%
407	$(INS.file)
408
409$(ROOTDIR)/tsol/%:	tsol/%
410	$(INS.file)
411
412$(ROOTDIRS):
413	$(INS.dir)
414
415