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