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