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