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