xref: /titanic_44/usr/src/uts/common/sys/Makefile.syshdrs (revision 23259b79afff8cc5e183c5be57e05120f378fa72)
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
108usb/clients/usbcdc/%.check:	usb/clients/usbcdc/%.h
109	$(DOT_H_CHECK)
110
111usb/clients/video/usbvc/%.check:  usb/clients/video/usbvc/%.h
112	$(DOT_H_CHECK)
113
1141394/%.check:         1394/%.h
115	$(DOT_H_CHECK)
116
117rsm/%.check:	rsm/%.h
118	$(DOT_H_CHECK)
119
120tsol/%.check:	tsol/%.h
121	$(DOT_H_CHECK)
122
123ROOTDIR=	$(ROOT)/usr/include/sys
124
125ROOTDKTPDIR=	$(ROOTDIR)/dktp
126
127sparc_ROOTDIRS=	$(ROOTDKTPDIR) $(ROOTDIR)/scsi/adapters \
128		$(ROOTDIR)/scsi/targets \
129		$(ROOTDIR)/av
130
131i386_ROOTDIRS=	$(ROOTDKTPDIR) $(ROOTDIR)/scsi/adapters $(ROOTDIR)/scsi/targets \
132		$(ROOTDIR)/i2o $(ROOTDIR)/agp $(ROOTDIR)/sata
133
134ROOTDIRS=			\
135	$(ROOTDIR)		\
136	$(ROOTDIR)/audio	\
137	$(ROOTDIR)/hotplug	\
138	$(ROOTDIR)/hotplug/pci	\
139	$(ROOTDIR)/crypto	\
140	$(ROOTDIR)/dcam		\
141	$(ROOTDIR)/iso		\
142	$(ROOTDIR)/fm		\
143	$(ROOTDIR)/fm/cpu	\
144	$(ROOTDIR)/fm/fs	\
145	$(ROOTDIR)/fm/io	\
146	$(ROOTDIR)/fs		\
147	$(ROOTDIR)/ib		\
148	$(ROOTDIR)/ib/adapters/tavor	\
149	$(ROOTDIR)/ib/ibtl	\
150	$(ROOTDIR)/ib/ibtl/impl	\
151	$(ROOTDIR)/ib/mgt	\
152	$(ROOTDIR)/ib/mgt/ibmf	\
153	$(ROOTDIR)/ib/ibnex	\
154	$(ROOTDIR)/ib/clients/ibd \
155	$(ROOTDIR)/lvm		\
156	$(ROOTDIR)/pcmcia	\
157	$(ROOTDIR)/scsi		\
158	$(ROOTDIR)/scsi/conf	\
159	$(ROOTDIR)/scsi/generic	\
160	$(ROOTDIR)/scsi/impl	\
161	$(ROOTDIR)/fc4		\
162	$(ROOTDIR)/sysevent     \
163	$(ROOTDIR)/contract     \
164	$(ROOTDIR)/usb		\
165	$(ROOTDIR)/usb/hubd	\
166	$(ROOTDIR)/usb/clients	\
167	$(ROOTDIR)/usb/clients/audio  \
168	$(ROOTDIR)/usb/clients/hid \
169	$(ROOTDIR)/usb/clients/mass_storage	\
170	$(ROOTDIR)/usb/clients/printer  \
171	$(ROOTDIR)/usb/clients/usbcdc  \
172	$(ROOTDIR)/usb/clients/video/usbvc  \
173	$(ROOTDIR)/usb/clients/ugen  \
174	$(ROOTDIR)/1394         \
175	$(ROOTDIR)/rsm		\
176	$(ROOTDIR)/tsol		\
177	$($(MACH)_ROOTDIRS)
178
179
180ROOTHDRS=				\
181	$($(MACH)_HDRS:%=$(ROOTDIR)/%)	\
182	$(HDRS:%=$(ROOTDIR)/%)
183
184ROOTAUDHDRS= $(AUDIOHDRS:%=$(ROOTDIR)/audio/%)
185
186ROOTAVHDRS= $(AVHDRS:%=$(ROOTDIR)/av/%)
187
188ROOTCRYPTOHDRS= $(CRYPTOHDRS:%=$(ROOTDIR)/crypto/%)
189
190ROOTDCAMHDRS= $(DCAMHDRS:%=$(ROOTDIR)/dcam/%)
191
192ROOTIBHDRS= $(IBHDRS:%=$(ROOTDIR)/ib/%)
193ROOTIBDHDRS= $(IBDHDRS:%=$(ROOTDIR)/ib/clients/ibd/%)
194ROOTIBTLHDRS= $(IBTLHDRS:%=$(ROOTDIR)/ib/ibtl/%)
195ROOTIBTLIMPLHDRS= $(IBTLIMPLHDRS:%=$(ROOTDIR)/ib/ibtl/impl/%)
196ROOTIBNEXHDRS= $(IBNEXHDRS:%=$(ROOTDIR)/ib/ibnex/%)
197ROOTIBMGTHDRS= $(IBMGTHDRS:%=$(ROOTDIR)/ib/mgt/%)
198ROOTIBMFHDRS= $(IBMFHDRS:%=$(ROOTDIR)/ib/mgt/ibmf/%)
199ROOTTAVORHDRS= $(TAVORHDRS:%=$(ROOTDIR)/ib/adapters/tavor/%)
200
201ROOTISOHDRS= $(ISOHDRS:%=$(ROOTDIR)/iso/%)
202
203ROOTFMHDRS= $(FMHDRS:%=$(ROOTDIR)/fm/%)
204ROOTFMCPUHDRS= $(FMCPUHDRS:%=$(ROOTDIR)/fm/cpu/%)
205ROOTFMIOHDRS= $(FMIOHDRS:%=$(ROOTDIR)/fm/io/%)
206ROOTFMFSHDRS= $(FMFSHDRS:%=$(ROOTDIR)/fm/fs/%)
207
208ROOTFSHDRS= $(FSHDRS:%=$(ROOTDIR)/fs/%)
209
210ROOTLVMHDRS= $(ALL_LVMHDRS:%=$(ROOTDIR)/lvm/%)
211
212ROOTPCMCIAHDRS= $(PCMCIAHDRS:%=$(ROOTDIR)/pcmcia/%)
213
214ROOTSCSIHDRS= $(SCSIHDRS:%=$(ROOTDIR)/scsi/%)
215ROOTSATAGENHDRS= $(SATAGENHDRS:%=$(ROOTDIR)/sata/%)
216ROOTSCSICONFHDRS= $(SCSICONFHDRS:%=$(ROOTDIR)/scsi/conf/%)
217ROOTSCSIGENHDRS= $(SCSIGENHDRS:%=$(ROOTDIR)/scsi/generic/%)
218ROOTSCSIIMPLHDRS= $(SCSIIMPLHDRS:%=$(ROOTDIR)/scsi/impl/%)
219ROOTSCSITARGETSHDRS= $(SCSITARGETSHDRS:%=$(ROOTDIR)/scsi/targets/%)
220ROOTSCSICADHDRS= $(SCSICADHDRS:%=$(ROOTDIR)/scsi/adapters/%)
221ROOTSCSIVHCIHDRS= $(SCSIVHCIHDRS:%=$(ROOTDIR)/scsi/adapters/%)
222
223ROOTFCHDRS= $(FCHDRS:%=$(ROOTDIR)/fc4/%)
224
225ROOTSYSEVENTHDRS= $(SYSEVENTHDRS:%=$(ROOTDIR)/sysevent/%)
226ROOTCONTRACTHDRS= $(CONTRACTHDRS:%=$(ROOTDIR)/contract/%)
227
228ROOTXHDRS= $(XHDRS:%=$(ROOTDIR)/%)
229
230ROOTUSBHDRS= $(USBHDRS:%=$(ROOTDIR)/usb/%)
231ROOTUSBAUDHDRS= $(USBAUDHDRS:%=$(ROOTDIR)/usb/clients/audio/%)
232ROOTUSBHUBDHDRS= $(USBHUBDHDRS:%=$(ROOTDIR)/usb/hubd/%)
233ROOTUSBHIDHDRS = $(USBHIDHDRS:%=$(ROOTDIR)/usb/clients/hid/%)
234ROOTUSBMSHDRS= $(USBMSHDRS:%=$(ROOTDIR)/usb/clients/mass_storage/%)
235ROOTUSBPRNHDRS= $(USBPRNHDRS:%=$(ROOTDIR)/usb/clients/printer/%)
236ROOTUSBCDCHDRS= $(USBCDCHDRS:%=$(ROOTDIR)/usb/clients/usbcdc/%)
237ROOTUSBVIDHDRS= $(USBVIDHDRS:%=$(ROOTDIR)/usb/clients/video/usbvc/%)
238ROOTUGENHDRS= $(UGENHDRS:%=$(ROOTDIR)/usb/clients/ugen/%)
239
240ROOT1394HDRS= $(I1394HDRS:%=$(ROOTDIR)/1394/%)
241
242ROOTRSMHDRS= $(RSMHDRS:%=$(ROOTDIR)/rsm/%)
243
244ROOTSDKTPHDRS= $(SDKTPHDRS:%=$(ROOTDIR)/dktp/%)
245ROOTDKTPHDRS= $(DKTPHDRS:%=$(ROOTDIR)/dktp/%)
246ROOTPCHDRS= $(PCHDRS:%=$(ROOTDIR)/%)
247ROOTI2OHDRS= $(I2OHDRS:%=$(ROOTDIR)/i2o/%)
248ROOTHOTPLUGHDRS= $(HOTPLUGHDRS:%=$(ROOTDIR)/hotplug/%)
249ROOTHOTPLUGPCIHDRS= $(HOTPLUGPCIHDRS:%=$(ROOTDIR)/hotplug/pci/%)
250
251ROOTTSOLHDRS= $(TSOLHDRS:%=$(ROOTDIR)/tsol/%)
252
253sparc_ROOTHDRS=	$(ROOTSDKTPHDRS) $(ROOTSCSICADHDRS) $(ROOTSCSITARGETSHDRS) \
254		$(ROOTFCHDRS) $(ROOTUSBHDRS) $(ROOTUSBHUBDHDRS) $(ROOTPCMCIAHDRS) \
255		$(ROOTUSBAUDHDRS) \
256		$(ROOTUSBHIDHDRS) $(ROOTUSBMSHDRS) $(ROOTUSBPRNHDRS) \
257		$(ROOTUGENHDRS) $(ROOTUSBVIDHDRS)
258
259i386_ROOTHDRS=	$(ROOTDKTPHDRS) $(ROOTPCHDRS) $(ROOTSCSITARGETSHDRS)	\
260		$(ROOTSCSIVHCIHDRS) $(ROOTFCHDRS)	\
261		$(ROOTI2OHDRS) $(ROOTPCMCIAHDRS) $(ROOTHOTPLUGHDRS) \
262		$(ROOTHOTPLUGPCIHDRS) $(ROOTSATAGENHDRS)
263
264# install rules
265$(ROOTDIR)/%: %
266	$(INS.file)
267
268$(ROOTDIR)/crypto/%: crypto/%
269	$(INS.file)
270
271$(ROOTDIR)/fm/%:                fm/%
272	$(INS.file)
273
274$(ROOTDIR)/fm/cpu/%:                fm/cpu/%
275	$(INS.file)
276
277$(ROOTDIR)/fm/io/%:                fm/io/%
278	$(INS.file)
279
280$(ROOTDIR)/fs/%: fs/%
281	$(INS.file)
282
283$(ROOTDIR)/ib/%:		ib/%
284	$(INS.file)
285
286$(ROOTDIR)/ib/clients/ibd/%:	ib/clients/ibd/%
287	$(INS.file)
288
289$(ROOTDIR)/ib/ibtl/%:		ib/ibtl/%
290	$(INS.file)
291
292$(ROOTDIR)/ib/ibtl/impl/%:	ib/ibtl/impl/%
293	$(INS.file)
294
295$(ROOTDIR)/ib/ibnex/%:		ib/ibnex/%
296	$(INS.file)
297
298$(ROOTDIR)/ib/mgt/%:		ib/mgt/%
299	$(INS.file)
300
301$(ROOTDIR)/ib/mgt/ibmf/%:	ib/mgt/ibmf/%
302	$(INS.file)
303
304$(ROOTDIR)/ib/adapters/tavor/%:	ib/adapters/tavor/%
305	$(INS.file)
306
307$(ROOTDIR)/lvm/%: lvm/%
308	$(INS.file)
309
310$(ROOTDIR)/pcmcia/%:		pcmcia/%
311	$(INS.file)
312
313$(ROOTDIR)/scsi/%:		scsi/%
314	$(INS.file)
315
316$(ROOTDIR)/scsi/conf/%:		scsi/conf/%
317	$(INS.file)
318
319$(ROOTDIR)/scsi/generic/%:	scsi/generic/%
320	$(INS.file)
321
322$(ROOTDIR)/scsi/impl/%:		scsi/impl/%
323	$(INS.file)
324
325$(ROOTDIR)/scsi/targets/%:	scsi/targets/%
326	$(INS.file)
327
328$(ROOTDIR)/fc4/%:		fc4/%
329	$(INS.file)
330
331$(ROOTDIR)/sysevent/%:		sysevent/%
332	$(INS.file)
333
334$(ROOTDIR)/contract/%:		contract/%
335	$(INS.file)
336
337$(ROOTDIR)/usb/%:		usb/%
338	$(INS.file)
339
340$(ROOTDIR)/usb/hubd/%:		usb/hubd/%
341	$(INS.file)
342
343$(ROOTDIR)/usb/clients/hid/%:	usb/clients/hid/%
344	$(INS.file)
345
346$(ROOTDIR)/usb/clients/mass_storage/%:	usb/clients/mass_storage/%
347	$(INS.file)
348
349$(ROOTDIR)/dktp/%: dktp/%
350	$(INS.file)
351
352$(ROOTDIR)/1394/%:                    1394/%
353	$(INS.file)
354
355$(ROOTDIR)/rsm/%:	rsm/%
356	$(INS.file)
357
358$(ROOTDIR)/tsol/%:	tsol/%
359	$(INS.file)
360
361$(ROOTDIRS):
362	$(INS.dir)
363
364