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