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