xref: /titanic_52/usr/src/uts/common/sys/Makefile.syshdrs (revision 5dfd244acc8f144280c5bc8f69ed941185fc3ccc)
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 2009 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/hid/%.check:	usb/clients/hid/%.h
135	$(DOT_H_CHECK)
136
137usb/clients/printer/%.check:  usb/clients/printer/%.h
138	$(DOT_H_CHECK)
139
140usb/clients/usbcdc/%.check:	usb/clients/usbcdc/%.h
141	$(DOT_H_CHECK)
142
143usb/clients/video/usbvc/%.check:  usb/clients/video/usbvc/%.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/ugen  \
214	$(ROOTDIR)/uwb \
215	$(ROOTDIR)/uwb/uwba \
216	$(ROOTDIR)/1394         \
217	$(ROOTDIR)/rsm		\
218	$(ROOTDIR)/tsol		\
219	$($(MACH)_ROOTDIRS)
220
221
222ROOTHDRS=				\
223	$($(MACH)_HDRS:%=$(ROOTDIR)/%)	\
224	$(HDRS:%=$(ROOTDIR)/%)
225
226ROOTAUDHDRS= $(AUDIOHDRS:%=$(ROOTDIR)/audio/%)
227
228ROOTAVHDRS= $(AVHDRS:%=$(ROOTDIR)/av/%)
229
230ROOTCRYPTOHDRS= $(CRYPTOHDRS:%=$(ROOTDIR)/crypto/%)
231
232ROOTDCAMHDRS= $(DCAMHDRS:%=$(ROOTDIR)/dcam/%)
233
234ROOTIBHDRS= $(IBHDRS:%=$(ROOTDIR)/ib/%)
235ROOTIBDHDRS= $(IBDHDRS:%=$(ROOTDIR)/ib/clients/ibd/%)
236ROOTIBTLHDRS= $(IBTLHDRS:%=$(ROOTDIR)/ib/ibtl/%)
237ROOTIBTLIMPLHDRS= $(IBTLIMPLHDRS:%=$(ROOTDIR)/ib/ibtl/impl/%)
238ROOTIBNEXHDRS= $(IBNEXHDRS:%=$(ROOTDIR)/ib/ibnex/%)
239ROOTIBMGTHDRS= $(IBMGTHDRS:%=$(ROOTDIR)/ib/mgt/%)
240ROOTIBMFHDRS= $(IBMFHDRS:%=$(ROOTDIR)/ib/mgt/ibmf/%)
241ROOTTAVORHDRS= $(TAVORHDRS:%=$(ROOTDIR)/ib/adapters/tavor/%)
242ROOTHERMONHDRS= $(HERMONHDRS:%=$(ROOTDIR)/ib/adapters/hermon/%)
243
244ROOTIDMHDRS= $(IDMHDRS:%=$(ROOTDIR)/idm/%)
245ROOTISCSITHDRS= $(ISCSITHDRS:%=$(ROOTDIR)/iscsit/%)
246
247ROOTISOHDRS= $(ISOHDRS:%=$(ROOTDIR)/iso/%)
248
249ROOTFMHDRS= $(FMHDRS:%=$(ROOTDIR)/fm/%)
250ROOTFMCPUHDRS= $(FMCPUHDRS:%=$(ROOTDIR)/fm/cpu/%)
251ROOTFMIOHDRS= $(FMIOHDRS:%=$(ROOTDIR)/fm/io/%)
252ROOTFMFSHDRS= $(FMFSHDRS:%=$(ROOTDIR)/fm/fs/%)
253
254ROOTFSHDRS= $(FSHDRS:%=$(ROOTDIR)/fs/%)
255
256ROOTLVMHDRS= $(ALL_LVMHDRS:%=$(ROOTDIR)/lvm/%)
257
258ROOTPCMCIAHDRS= $(PCMCIAHDRS:%=$(ROOTDIR)/pcmcia/%)
259
260ROOTSCSIHDRS= $(SCSIHDRS:%=$(ROOTDIR)/scsi/%)
261ROOTSATAGENHDRS= $(SATAGENHDRS:%=$(ROOTDIR)/sata/%)
262ROOTSCSICONFHDRS= $(SCSICONFHDRS:%=$(ROOTDIR)/scsi/conf/%)
263ROOTSCSIGENHDRS= $(SCSIGENHDRS:%=$(ROOTDIR)/scsi/generic/%)
264ROOTSCSIIMPLHDRS= $(SCSIIMPLHDRS:%=$(ROOTDIR)/scsi/impl/%)
265ROOTSCSITARGETSHDRS= $(SCSITARGETSHDRS:%=$(ROOTDIR)/scsi/targets/%)
266ROOTSCSICADHDRS= $(SCSICADHDRS:%=$(ROOTDIR)/scsi/adapters/%)
267ROOTSCSIADHDRS= $(SCSICADHDRS:%=$(ROOTDIR)/scsi/adapters/%)
268ROOTSCSIVHCIHDRS= $(SCSIVHCIHDRS:%=$(ROOTDIR)/scsi/adapters/%)
269ROOTSCSIISCSIHDRS= $(SCSIISCSIHDRS:%=$(ROOTDIR)/scsi/adapters/%)
270
271ROOTFC4HDRS= $(FC4HDRS:%=$(ROOTDIR)/fc4/%)
272ROOTFCHDRS= $(FCHDRS:%=$(ROOTDIR)/fibre-channel/%)
273ROOTFCIMPLHDRS= $(FCIMPLHDRS:%=$(ROOTDIR)/fibre-channel/impl/%)
274ROOTFCULPHDRS= $(FCULPHDRS:%=$(ROOTDIR)/fibre-channel/ulp/%)
275
276ROOTSDCARDHDRS= $(SDCARDHDRS:%=$(ROOTDIR)/sdcard/%)
277
278ROOTSYSEVENTHDRS= $(SYSEVENTHDRS:%=$(ROOTDIR)/sysevent/%)
279ROOTCONTRACTHDRS= $(CONTRACTHDRS:%=$(ROOTDIR)/contract/%)
280
281ROOTXHDRS= $(XHDRS:%=$(ROOTDIR)/%)
282
283ROOTUSBHDRS= $(USBHDRS:%=$(ROOTDIR)/usb/%)
284ROOTUWBHDRS= $(UWBHDRS:%=$(ROOTDIR)/uwb/%)
285ROOTUWBAHDRS= $(UWBAHDRS:%=$(ROOTDIR)/uwb/uwba/%)
286ROOTUSBAUDHDRS= $(USBAUDHDRS:%=$(ROOTDIR)/usb/clients/audio/%)
287ROOTUSBHUBDHDRS= $(USBHUBDHDRS:%=$(ROOTDIR)/usb/hubd/%)
288ROOTUSBHIDHDRS = $(USBHIDHDRS:%=$(ROOTDIR)/usb/clients/hid/%)
289ROOTUSBHWARCHDRS = $(USBHWARCHDRS:%=$(ROOTDIR)/usb/clients/hwarc/%)
290ROOTUSBMSHDRS= $(USBMSHDRS:%=$(ROOTDIR)/usb/clients/mass_storage/%)
291ROOTUSBPRNHDRS= $(USBPRNHDRS:%=$(ROOTDIR)/usb/clients/printer/%)
292ROOTUSBCDCHDRS= $(USBCDCHDRS:%=$(ROOTDIR)/usb/clients/usbcdc/%)
293ROOTUSBVIDHDRS= $(USBVIDHDRS:%=$(ROOTDIR)/usb/clients/video/usbvc/%)
294ROOTUGENHDRS= $(UGENHDRS:%=$(ROOTDIR)/usb/clients/ugen/%)
295
296ROOT1394HDRS= $(I1394HDRS:%=$(ROOTDIR)/1394/%)
297
298ROOTRSMHDRS= $(RSMHDRS:%=$(ROOTDIR)/rsm/%)
299
300ROOTSDKTPHDRS= $(SDKTPHDRS:%=$(ROOTDIR)/dktp/%)
301ROOTDKTPHDRS= $(DKTPHDRS:%=$(ROOTDIR)/dktp/%)
302ROOTPCHDRS= $(PCHDRS:%=$(ROOTDIR)/%)
303ROOTHOTPLUGHDRS= $(HOTPLUGHDRS:%=$(ROOTDIR)/hotplug/%)
304ROOTHOTPLUGPCIHDRS= $(HOTPLUGPCIHDRS:%=$(ROOTDIR)/hotplug/pci/%)
305
306ROOTTSOLHDRS= $(TSOLHDRS:%=$(ROOTDIR)/tsol/%)
307
308sparc_ROOTHDRS=	$(ROOTSDKTPHDRS) $(ROOTSCSICADHDRS) $(ROOTSCSITARGETSHDRS) \
309		$(ROOTUSBHDRS) $(ROOTUSBHUBDHDRS) $(ROOTPCMCIAHDRS) \
310		$(ROOTUSBAUDHDRS) $(ROOTUSBHIDHDRS) $(ROOTUSBMSHDRS) \
311		$(ROOTUSBPRNHDRS) $(ROOTUGENHDRS) $(ROOTUSBVIDHDRS) \
312		$(ROOTUWBHDRS) $(ROOTUWBAHDRS) $(ROOTUSBHWARCHDRS)
313
314i386_ROOTHDRS=	$(ROOTDKTPHDRS) $(ROOTPCHDRS) $(ROOTSCSITARGETSHDRS)	\
315		$(ROOTSCSIVHCIHDRS) $(ROOTPCMCIAHDRS) $(ROOTHOTPLUGHDRS) \
316		$(ROOTHOTPLUGPCIHDRS) $(ROOTSATAGENHDRS) \
317		$(ROOTUWBHDRS) $(ROOTUWBAHDRS) $(ROOTUSBHWARCHDRS)
318
319# install rules
320$(ROOTDIR)/%: %
321	$(INS.file)
322
323$(ROOTDIR)/crypto/%: crypto/%
324	$(INS.file)
325
326$(ROOTDIR)/fc4/%:		fc4/%
327	$(INS.file)
328
329$(ROOTDIR)/fibre-channel/%:	fibre-channel/%
330	$(INS.file)
331
332$(ROOTDIR)/fibre-channel/impl/%:	fibre-channel/impl/%
333	$(INS.file)
334
335$(ROOTDIR)/fibre-channel/ulp/:	fibre-channel/ulp/%
336	$(INS.file)
337
338$(ROOTDIR)/fm/%:                fm/%
339	$(INS.file)
340
341$(ROOTDIR)/fm/cpu/%:                fm/cpu/%
342	$(INS.file)
343
344$(ROOTDIR)/fm/io/%:                fm/io/%
345	$(INS.file)
346
347$(ROOTDIR)/fs/%: fs/%
348	$(INS.file)
349
350$(ROOTDIR)/ib/%:		ib/%
351	$(INS.file)
352
353$(ROOTDIR)/ib/clients/ibd/%:	ib/clients/ibd/%
354	$(INS.file)
355
356$(ROOTDIR)/ib/ibtl/%:		ib/ibtl/%
357	$(INS.file)
358
359$(ROOTDIR)/ib/ibtl/impl/%:	ib/ibtl/impl/%
360	$(INS.file)
361
362$(ROOTDIR)/ib/ibnex/%:		ib/ibnex/%
363	$(INS.file)
364
365$(ROOTDIR)/ib/mgt/%:		ib/mgt/%
366	$(INS.file)
367
368$(ROOTDIR)/ib/mgt/ibmf/%:	ib/mgt/ibmf/%
369	$(INS.file)
370
371$(ROOTDIR)/ib/adapters/tavor/%:	ib/adapters/tavor/%
372	$(INS.file)
373
374$(ROOTDIR)/ib/adapters/hermon/%:	ib/adapters/hermon/%
375	$(INS.file)
376
377$(ROOTDIR)/lvm/%: lvm/%
378	$(INS.file)
379
380$(ROOTDIR)/pcmcia/%:		pcmcia/%
381	$(INS.file)
382
383$(ROOTDIR)/scsi/%:		scsi/%
384	$(INS.file)
385
386$(ROOTDIR)/scsi/conf/%:		scsi/conf/%
387	$(INS.file)
388
389$(ROOTDIR)/scsi/generic/%:	scsi/generic/%
390	$(INS.file)
391
392$(ROOTDIR)/scsi/impl/%:		scsi/impl/%
393	$(INS.file)
394
395$(ROOTDIR)/scsi/targets/%:	scsi/targets/%
396	$(INS.file)
397
398$(ROOTDIR)/scsi/adapters/%:	scsi/adapters/%
399	$(INS.file)
400
401$(ROOTDIR)/sdcard/%:		sdcard/%
402	$(INS.file)
403
404$(ROOTDIR)/sysevent/%:		sysevent/%
405	$(INS.file)
406
407$(ROOTDIR)/contract/%:		contract/%
408	$(INS.file)
409
410$(ROOTDIR)/usb/%:		usb/%
411	$(INS.file)
412
413$(ROOTDIR)/usb/hubd/%:		usb/hubd/%
414	$(INS.file)
415
416$(ROOTDIR)/usb/clients/hid/%:	usb/clients/hid/%
417	$(INS.file)
418
419$(ROOTDIR)/usb/clients/mass_storage/%:	usb/clients/mass_storage/%
420	$(INS.file)
421
422$(ROOTDIR)/dktp/%: dktp/%
423	$(INS.file)
424
425$(ROOTDIR)/1394/%:                    1394/%
426	$(INS.file)
427
428$(ROOTDIR)/rsm/%:	rsm/%
429	$(INS.file)
430
431$(ROOTDIR)/tsol/%:	tsol/%
432	$(INS.file)
433
434$(ROOTDIRS):
435	$(INS.dir)
436
437